Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (753)
Games in Android Showcase (228)
games submitted by our members
Games in WIP (842)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Java Game APIs & Engines / Java 3D / Re: Multiple objects in Java3D on: 2005-09-08 13:43:49
Would it be viable for me, then, to frequently add and detach large numbers of objects in a game situation, say, rapid fire projectiles that need to be moved along their trajectory? I was wondering what would be the established way of doing this...

I really don't know about the inner workings of Java3D, but detaching does sound like it could be expensive, especially if Java is attempting to optimise the render using the tree...  but then again, wouldn't hiding the objects out of sight by drastically changing their position, force a recomputation of bounds and etc as well?
but in line with the object hiding idea, is there is a cheap way to toggle a visibility for a branch?

Nonetheless, I'll try out both in code (hiding and detaching) and post the results in case anyone's interested...

Thanks so much for all the kind responses and suggestions! Smiley
really appreciate all that effort ^^
2  Java Game APIs & Engines / Java 3D / Re: Multiple objects in Java3D on: 2005-09-07 02:09:25
Thanks for the advice! I shall use that right away. Smiley
Just one other question though... if I clone a subtree per entity, is it apropriate for me to detach them from the universe in order to remove an entity, or is this an expensive operation?
3  Java Game APIs & Engines / Java 3D / Multiple objects in Java3D on: 2005-09-06 14:27:35

I'm rather new to Java3D, and I was wondering what the apropriate way to include multiple objects in a scene is.

Right now, I'm loading Shape3Ds for each of my entities and attaching them to a SimpleUniverse directly by means of BranchGroups (no hierachy). The entities are all represented by the same mesh, but each one loads a copy of the same mesh data, which isn't exactly a great thing. When I need them out of the scene, I detach their BranchGroup linkages.

While reading through the forum, I realise these practices are definitely not right.
I was wondering if i could store the geometry just once, then reference the mesh data each time I draw a copy of the mesh on screen?

thanks in advance for the help! Smiley
4  Java Game APIs & Engines / Java 3D / world coords to screen coords on: 2004-03-23 07:11:36

i'm pretty new to java 3d and i'm trying to figure out how to calculate the on-screen (2d coordinates) position of a 3d point... is there any way i can do this?

thanks very much! Smiley
Pages: [1]
ivj94 (579 views)
2018-03-24 14:47:39

ivj94 (42 views)
2018-03-24 14:46:31

ivj94 (346 views)
2018-03-24 14:43:53

Solater (59 views)
2018-03-17 05:04:08

nelsongames (104 views)
2018-03-05 17:56:34

Gornova (122 views)
2018-03-02 22:15:33

buddyBro (665 views)
2018-02-28 16:59:18

buddyBro (89 views)
2018-02-28 16:45:17

xxMrPHDxx (491 views)
2017-12-31 17:17:51

xxMrPHDxx (727 views)
2017-12-31 17:15:51
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!