Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Java 3D / April 2004

Tip: Looking for answers? Try searching our database.

plotting points ?

Thread view: 
M Smith - 02 Apr 2004 01:32 GMT
Hi im new at J3D ive been reading the tutorials and have got so far, but im
getting well and truly bogged down now, so im seeking assistance, I have a
set of points 2D and would like to plot them on the canvas in a similar way
to that of java2 using drawpolygon, I realise I only have 2 sets of
co-ordinates so im using random height for all points at present giving me
3dpoint(x,y,z).

No how the heck can I get it to plot the points and draw the lines that I
want ??????

Help much appreciated Pete
Andre Bialojahn - 09 Apr 2004 03:12 GMT
> [2D drawing on a Canvas3D?]
> No how the heck can I get it to plot the points and draw the lines
> that I want ??????

Please have a closer look at J3DGraphics2D. It might help you some.

André
M Smith - 09 Apr 2004 12:05 GMT
Cheers for the reply mate.

Ive been working on it for the past couple of days now, and have managed to
get a wireframe developed using the triangulate methods, the problem I have
now is that my winding order is incorrect so the wireframe looks a tad off,
when I display points the shape is correct, I would like to simply drape an
image over these points, ive been looking at 'texcoordgeneration' but cant
figure out if im on the right track.

Any info would be good. Pete

> x-no-archive: yes
>
[quoted text clipped - 5 lines]
>
> Andr?
Andre Bialojahn - 10 Apr 2004 00:47 GMT
> [drawing a wireframe on top of a 3D-scene using a 2D context]
> is incorrect so the wireframe looks a tad off, when I display
> points the shape is correct, I would like to simply drape an
> image over these points, ive been looking at 'texcoordgeneration'
> but cant figure out if im on the right track.

I'm not quite sure, if I get you right.
If you want to add an artificial wireframe on top of your rendered
3D-Scene, you have to mimic the perspective view transformation.
Otherwise, your wireframe *has* to look wrong.

No, I'm not gonna ask why in the world you need an additional
wireframe on top of your rendered images. ;-)

Sorry to disappoint you, but I'm afraid I won't be much of a help,
here.

Somewhere (as always, when asked: you naturally can't remember) - I
believe in the demos or on the web - I found a snippet that tweaked
the vertex normals and line drawing styles and thus gave a stong
*outline* to the rendered J3D image.
But this still is no wireframe, I admit.

Ha! Got it: <http://www.j3d.org/tutorials/quick_fix/npr_line.html>
<:-)

Maybe, you'll like to have a close look at the archives of
J3D-Interest. Just browse for wireframe. Doing so, I found this:
<http://archives.java.sun.com/cgi-bin/wa?A2=ind0207&L=java3d-interest&F=&S=&P=8699>

If nothing of this seems appropriate in your case, I'd like to ask
you to just explain it a little more to me. Maybe I might get the
hint, then.

Regards,
André


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.