1

**Support / Re: using setParent or rotate for polylines**

« **on:**October 15, 2014, 01:28:56 am »

thanks egon!!

exactly what I needed!

exactly what I needed!

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Pages: [**1**]

1

thanks egon!!

exactly what I needed!

exactly what I needed!

2

Hi,

you suggested using polyline.setParent in order to get edges for a shape

the problem is that I get an error that says setParent is not a method of polylines

so how can I add my "full and regular" shape as a parent to the "lines shape"?

and, can I rotate a line?

thanks

you suggested using polyline.setParent in order to get edges for a shape

the problem is that I get an error that says setParent is not a method of polylines

so how can I add my "full and regular" shape as a parent to the "lines shape"?

and, can I rotate a line?

thanks

3

thanks again !

4

Hi, me again

so I'm making my own cylinder, and I started "tiling" with triangles the upper and lower bases.

but since all triangles are being culled the same way, you can see both bases from only one direction. is there a way to invert the culling of triangles of only one base? so one base will be seemed from one direction and the second one from another direction?

both bases belong to the same object called "cylinder" so if I do "invert culling" it effects all triangles and I need to invert the culling for only some of them.

thanks

so I'm making my own cylinder, and I started "tiling" with triangles the upper and lower bases.

but since all triangles are being culled the same way, you can see both bases from only one direction. is there a way to invert the culling of triangles of only one base? so one base will be seemed from one direction and the second one from another direction?

both bases belong to the same object called "cylinder" so if I do "invert culling" it effects all triangles and I need to invert the culling for only some of them.

thanks

6

thanks, so I need now a little advice

I need to create a cylinder which is a little bit more complex than a cube.

I see that every thing is here must be defined with triangles (which I find hard to use to create a cylinder)

so for this matter should I use the j3d classes for the cylinder (there I can define exact height and radius) or is there a more useful way to do what I want in the jpct environment?

I need to create a cylinder which is a little bit more complex than a cube.

I see that every thing is here must be defined with triangles (which I find hard to use to create a cylinder)

so for this matter should I use the j3d classes for the cylinder (there I can define exact height and radius) or is there a more useful way to do what I want in the jpct environment?

7

tried it but nothing has changed.

I even drew a cube to make it more simple.... nothing.

I want a wireframe (edges) but also to keep the texture/ color.

and only to a specific object (the cylinder).

I'm used to use Matlab (don't worry I know its completely different) and there there are options for enabling/ disabling the edges. is there something similar here I can do?

I even drew a cube to make it more simple.... nothing.

I want a wireframe (edges) but also to keep the texture/ color.

and only to a specific object (the cylinder).

I'm used to use Matlab (don't worry I know its completely different) and there there are options for enabling/ disabling the edges. is there something similar here I can do?

8

Hi,

I'm totally new with jpct (to say the truth I'm new with java, but as I saw there's no problem learning a 3d engine before knowing all the basics, its even kind of helping knowing the language)

my problem: I want to create a 3d cylinder, at first I used the Primitives class but than I saw that I wouldn't go far with this object (and I'm planing to). so I'm going to make it manually like you did in the cube example.

the problem is that I don't see any way to show the edges of the cylinder since there are no "line objects" . so...

how can I do it?

thanks

I'm totally new with jpct (to say the truth I'm new with java, but as I saw there's no problem learning a 3d engine before knowing all the basics, its even kind of helping knowing the language)

my problem: I want to create a 3d cylinder, at first I used the Primitives class but than I saw that I wouldn't go far with this object (and I'm planing to). so I'm going to make it manually like you did in the cube example.

the problem is that I don't see any way to show the edges of the cylinder since there are no "line objects" . so...

how can I do it?

thanks

Pages: [**1**]