Rendered primitive doesn’t look rightly

Software: Away3D 3.x

jasonMiller, Newbie
Posted: 31 July 2012 06:59 AM   Total Posts: 4

hey guys
I have some problem when I rendering some primitives
in my case i put plane and lineSegment in the scene3D
after that i started render.
then shapes what i made looks crap like pictures below.
is there anyone can solve this problem??

 

   

Richard Olsson, Administrator
Posted: 31 July 2012 09:42 AM   Total Posts: 1192   [ # 1 ]

How do you expect them to look? Is the black line supposed to be in front of the red plane in all cases? if so, you’re probably best off sub-dividing both into more sub-segments, since the z sorting in Away3D 3.x happens per triangle/segment.

   

jasonMiller, Newbie
Posted: 31 July 2012 09:57 AM   Total Posts: 4   [ # 2 ]

yeah~cool~thx!
I solve this problem using pushfront & pushback method. but there is one more question. It works perfect when camera position is in front of these object, but when camera move to opposite side, line is still cover plane.
any ideas??

   

Richard Olsson, Administrator
Posted: 31 July 2012 10:00 AM   Total Posts: 1192   [ # 3 ]

That’s how pushfront and pushback work. They push an object to the front or the back of the screen (from the camera’s current point of view) and not the scene.

I would still recommend you to split your meshes up into smaller parts (by adjusting the number of segments on the plane, and manually or procedurally splitting the line into several shorter lines.) Also, make sure they are not in the exact same position, but that the line is actually a slight distance away from the plane.

That should solve your problem.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X