Hi all,
I would like to present a SOP I have created to read a lightwave .lwo (object file)
It can transfer:
Multi layers,
All vertex maps (Uvs, Color, Weight, Morph, etc)
All groups (Part to PrimGroups, point selections to PointGroups)
All surface data, to be copy parmed to Houdini Materials
http://forums.odforce.net/index.php?/topic/15565-lightwave-lwo-reader-sop/ [forums.odforce.net]
Found 22 posts.
Search results Show results as topic list.
Work in Progress » Lightwave object reader SOP
- rom12345
- 22 posts
- Offline
Technical Discussion » Point indices for vertices along uv seams
- rom12345
- 22 posts
- Offline
Technical Discussion » Point indices for vertices along uv seams
- rom12345
- 22 posts
- Offline
I think I'm understanding, but let me be a little more explicit in what I am trying to achieve.
I would like to transfer geometry to the Unity Game Engine. i know I can use objs, but I would like to transfer 2 uv sets & vertex color via a network socket.
A requirement here is for the number of (unity) vertices (vector3) to match the number of uvs(Vector2).
I am getting a result, as this is the case with each polygon containing discreet vertices, however I end up with a lode of vertices and a unwelded mesh.
What I need to resolve is discontinuous uvs ie those vertices/points which will have more than one uv coord in order to generate extra verts in unity.
so i guess an “unweld along uv seams” is in order.
I suppose I could handle this on the unity side, but sending so much additional data through the socket really slows things down.
I would like to transfer geometry to the Unity Game Engine. i know I can use objs, but I would like to transfer 2 uv sets & vertex color via a network socket.
A requirement here is for the number of (unity) vertices (vector3) to match the number of uvs(Vector2).
I am getting a result, as this is the case with each polygon containing discreet vertices, however I end up with a lode of vertices and a unwelded mesh.
What I need to resolve is discontinuous uvs ie those vertices/points which will have more than one uv coord in order to generate extra verts in unity.
so i guess an “unweld along uv seams” is in order.
I suppose I could handle this on the unity side, but sending so much additional data through the socket really slows things down.
Technical Discussion » Point indices for vertices along uv seams
- rom12345
- 22 posts
- Offline
Technical Discussion » Point indices for vertices along uv seams
- rom12345
- 22 posts
- Offline
Hi all
I have notice that houdini produces separated vertices for each polygon, almost like and unwelded model. Can anyone point me the right direction on how to get a point list of only those vertices along the seems of the uvmap.
This is for a custom exporter.
I have notice that houdini produces separated vertices for each polygon, almost like and unwelded model. Can anyone point me the right direction on how to get a point list of only those vertices along the seems of the uvmap.
This is for a custom exporter.
Technical Discussion » point indices in prim (hscript)
- rom12345
- 22 posts
- Offline
Technical Discussion » point indices in prim (hscript)
- rom12345
- 22 posts
- Offline
Technical Discussion » point indices in prim (hscript)
- rom12345
- 22 posts
- Offline
I tried that, but I'm getting the same result
I tried to do a quick test by modifying your code
prim.setAttribValue(hasPoints_attri,“hello”
but i still get :
echo `prim(“/obj/box”,2,“has_points”,0)`
0
I tried to do a quick test by modifying your code
prim.setAttribValue(hasPoints_attri,“hello”
but i still get :
echo `prim(“/obj/box”,2,“has_points”,0)`
0
Technical Discussion » point indices in prim (hscript)
- rom12345
- 22 posts
- Offline
Technical Discussion » point indices in prim (hscript)
- rom12345
- 22 posts
- Offline
Hey zarti
I have tried out your otl.
The attribute “has_points” is created ok
I figured I would get a string out
but when I try to query it in the textport I get :
echo `prim(“/obj/box”,2,has_points,0)`
2
I have tried out your otl.
The attribute “has_points” is created ok
I figured I would get a string out
but when I try to query it in the textport I get :
echo `prim(“/obj/box”,2,has_points,0)`
2
Technical Discussion » point indices in prim (hscript)
- rom12345
- 22 posts
- Offline
many thanx for this.
This thread
http://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&t=23623 [sidefx.com]
will explain why I need to use hscript for now.
This thread
http://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&t=23623 [sidefx.com]
will explain why I need to use hscript for now.
Technical Discussion » point indices in prim (hscript)
- rom12345
- 22 posts
- Offline
I'm quite new to this.
so I would appreciate an example if possible.
Also how do I :
get a prim count in a mesh
get a vertex count in a prim
At the moment I need to use Hscript.
so I would appreciate an example if possible.
Also how do I :
get a prim count in a mesh
get a vertex count in a prim
At the moment I need to use Hscript.
Technical Discussion » point indices in prim (hscript)
- rom12345
- 22 posts
- Offline
pointlist(surface_node, group_name)
are you sure this is not to get the list of points in a group.
i would expect to be able input the prim index
ie
pointlist(surface_node, prim_index)
are you sure this is not to get the list of points in a group.
i would expect to be able input the prim index
ie
pointlist(surface_node, prim_index)
Technical Discussion » point indices in prim (hscript)
- rom12345
- 22 posts
- Offline
Hi All
This is probably a very simple one.
How do I get a list of point indices in a prim using hscript ?
This is probably a very simple one.
How do I get a list of point indices in a prim using hscript ?
Technical Discussion » c# socket with houdini
- rom12345
- 22 posts
- Offline
ok I have figured it out
echo `point(“/obj/box/box1”,0,P,0)`
ie back tick the function
This will serve me ok, but I would really like to use python
echo `point(“/obj/box/box1”,0,P,0)`
ie back tick the function
This will serve me ok, but I would really like to use python
Technical Discussion » c# socket with houdini
- rom12345
- 22 posts
- Offline
mmmf, I'm not sure what I am doing wrong here.
In the textport :
point(“../box1”, $PT “Cd”, 0)
I get
Unknown command : point
are you sure this is hscript ?
It really should be able to work in the textport, remember I need to send this command from a external application.
In the list of hcommands in the docs, there is no command named point, prim or vert
what am I missing here ?
It would seem that point/prim/vert are expression functions that cannot be executed via RPC
In the textport :
point(“../box1”, $PT “Cd”, 0)
I get
Unknown command : point
are you sure this is hscript ?
It really should be able to work in the textport, remember I need to send this command from a external application.
In the list of hcommands in the docs, there is no command named point, prim or vert
what am I missing here ?
It would seem that point/prim/vert are expression functions that cannot be executed via RPC
Technical Discussion » c# socket with houdini
- rom12345
- 22 posts
- Offline
Technical Discussion » c# socket with houdini
- rom12345
- 22 posts
- Offline
awesome, awesome,
thanx guys
I'll have a crack at this tomorrow and give you some feedback.
thanx guys
I'll have a crack at this tomorrow and give you some feedback.
Technical Discussion » c# socket with houdini
- rom12345
- 22 posts
- Offline
mmm, I am aware of the python hou.geomerty.point/prim/vertex
Is there an hscript equivalent ?
If not a least I know.
Is there an hscript equivalent ?
If not a least I know.
Technical Discussion » c# socket with houdini
- rom12345
- 22 posts
- Offline
I would like to reframe this question as it seems to have gone a little off-topic.
The purpose of my enquiry is to enable Houdini RPC in .NET applications through a network socket.
http://msdn.microsoft.com/en-us/library/system.net.sockets.socket.aspx [msdn.microsoft.com]
one thing that would really help for now is :
How do I query geometry properties(points/polys/etc) in hscript ?
The purpose of my enquiry is to enable Houdini RPC in .NET applications through a network socket.
http://msdn.microsoft.com/en-us/library/system.net.sockets.socket.aspx [msdn.microsoft.com]
one thing that would really help for now is :
How do I query geometry properties(points/polys/etc) in hscript ?
-
- Quick Links