Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (404)
games submitted by our members
Games in WIP (289)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Different appearances on polygons & transpare  (Read 1469 times)
0 Members and 1 Guest are viewing this topic.
Offline Preston

Senior Member


Medals: 2



« Posted 2003-11-20 07:49:07 »

Hi, two questions please:

a) A very basic one: if you want to have different appearances for the n polygons of one 3d model, do you need to create new Shape3Ds for any polygon which wants to have a different appearance?
(For example one side of a cube shall be transparent, the others not, or have different material colours, and so on.)

b) I've enabled the transparency of a large 3d modell's appearance for a test (~45k polys). I think Xith3d then starts to sort these many polygons because otherwise it would look wrong.
Well, the first time it worked for a few seconds but then the VM crashed with an "exception outside the VM error". So did any further start.
Probably this is due to my used beta version 2003-11-13_cvs/  or maybe Jogl?

Memento mori.
Offline kevglass
« League of Dukes »

JGO Kernel


Medals: 54
Projects: 20


Mentally unstable, best avoided.


« Reply #1 - Posted 2003-11-20 07:52:17 »

Quote

a) A very basic one: if you want to have different appearances for the n polygons of one 3d model, do you need to create new Shape3Ds for any polygon which wants to have a different appearance?
(For example one side of a cube shall be transparent, the others not, or have different material colours, and so on.)


Yes. Smiley

Quote

b) I've enabled the transparency of a large 3d modell's appearance for a test (~45k polys). I think Xith3d then starts to sort these many polygons because otherwise it would look wrong.
Well, the first time it worked for a few seconds (with 1 FPS or so ;-) but then the VM crashed with an "exception outside the VM error". So did any further start.
Probably this is due to my used beta version 2003-11-13_cvs/  or maybe Jogl?


Is it reproducable? What model format was it in? Could you post the output.

Kev

Offline Yuri Vl. Gushchin

Senior Member




Speak Java!


« Reply #2 - Posted 2003-11-20 08:06:35 »

Quote
Is it reproducable? What model format was it in? Could you post the output.


Asking for the same, and even more - can you please file an issue to Issuezilla and attach a test case?

Yuri

Yuri Vl. Gushchin
JProof Group
Games published by our own members! Check 'em out!
Play the free demo of Revenge of the Titans!
Offline Preston

Senior Member


Medals: 2



« Reply #3 - Posted 2003-11-20 08:31:20 »

Quote

Yes. :)

Thanks. I thought it the same way but wasn't sure so I asked. :)

Quote
Is it reproducable? What model format was it in? Could you post the output.

Yesterday it's been reproducible.
The model format is Lightwave.
First I'll have to encircle it and if it's really reproducible I'm going to post the stack-trace.

Are the transparent polygons (inside the model) and models being sorted automatically or do I have to enable this (via transparency.setSortEnabled or such) ? It looks right so I guess it's being sorted but doesn't know (newbie).


Addendum: Of course, like always, when I try to reproduce it right now, it works. :-(  Well, it's good for Xith3d, but it also means my PC fools me. I'm going to post the result of whatever.

Memento mori.
Offline Preston

Senior Member


Medals: 2



« Reply #4 - Posted 2003-11-20 08:32:20 »

Quote

Asking for the same, and even more - can you please file an issue to Issuezilla and attach a test case?

I'll try to encircle it and if it looks like a bug then gladly I'm going to fill an Issuezilla.

Memento mori.
Offline Yuri Vl. Gushchin

Senior Member




Speak Java!


« Reply #5 - Posted 2003-11-20 10:22:57 »

Quote
Are the transparent polygons (inside the model) and models being sorted automatically or do I have to enable this (via transparency.setSortEnabled or such) ? It looks right so I guess it's being sorted but doesn't know (newbie).


Sort for transparent objects is enabled by default. You can disable it if needed with setSortEnabled(false).

Yuri

Yuri Vl. Gushchin
JProof Group
Offline Preston

Senior Member


Medals: 2



« Reply #6 - Posted 2003-11-20 11:11:48 »

Quote

Sort for transparent objects is enabled by default. You can disable it if needed with setSortEnabled(false).

Thanks Yuri. I thought it was enabled because the output looked right, but didn't dare to look at the Javadoc because so many times it's just empty. No critism of course, just an observation.

com.xith3d.scenegraph.TransparencyAttributes.setSortEnabled(boolean sortEnabled)
Quote

(..) By default, sorting is enabled.

Next time I'll look at your Javadoc first. :)

Memento mori.
Offline Jens

Senior Member




Java for games!


« Reply #7 - Posted 2003-11-20 18:16:24 »

Quote

Thanks Yuri. I thought it was enabled because the output looked right, but didn't dare to look at the Javadoc because so many times it's just empty.


I made this experience very often. In some cases it helps to look at the Java3D Javadoc. In the last weeks Javadoc has improved, although it's still not really usable.

Hm, I just noticed that the package xith3d.gui seems to be pretty useless (one reason is that xith3d.gui requires LWJGL and does not use the abstraction layer).

Xith3D Getting Started Guide (PDF,HTML,Source)
Offline Preston

Senior Member


Medals: 2



« Reply #8 - Posted 2003-11-22 06:03:32 »

Quote

I made this experience very often. In some cases it helps to look at the Java3D Javadoc. In the last weeks Javadoc has improved, although it's still not really usable.

Hi Jens. It's good that Xith3d's Javadoc improves. I also have opened the Java3d Javadoc next to my Xith3d Javadoc. Several times it's useful because of the similarities of the two.

Quote
Hm, I just noticed that the package xith3d.gui seems to be pretty useless (one reason is that xith3d.gui requires LWJGL and does not use the abstraction layer).

Oh... Does this mean we can't use the GUI right now without LWJGL? Because I don't have got LWJGL installed and won't do.


PS: The VM crash which I reported in my previous articles: I can't reproduce it currently. :-(  But it was there. No idea what caused it and why it's different now. I'll keep my eyes open. :-)

Memento mori.
Offline endolf
« League of Dukes »

JGO Coder


Medals: 4
Projects: 1


Current project release date: sometime in 3003


« Reply #9 - Posted 2003-11-22 06:11:18 »

Quote
Oh... Does this mean we can't use the GUI right now without LWJGL? Because I don't have got LWJGL installed and won't do.

You can use it, i have no idea what the gui package is, but the one you are after is userinterface UIManager and UIWindow are the important ones, I have moved my whole connection dialog from a seperate swing JFrame in to the Xith window Smiley, There are a couple of issues with it still though, like some transparent hud components become non transparent when you update them, and you can only seem to update at the moment if you use setRoot() on the UIWindow, which resets the transparency. If you are using components with no transparency or are not updating your transparent components it seems to work just fine, but it doesn fill the fps, my connectino dialog takes my FPS form ~800 to ~150, but it is almost 1/2 the area of my window Smiley, when that is closed and just my FPS counter and test component are showing i'm back up to ~450

HTH

Endolf

Games published by our own members! Check 'em out!
Play the free demo of Revenge of the Titans!
Offline Jens

Senior Member




Java for games!


« Reply #10 - Posted 2003-11-22 08:01:48 »

Quote
Oh... Does this mean we can't use the GUI right now without LWJGL? Because I don't have got LWJGL installed and won't do.


Sorry for causing confusion. Endolf already explained that xith3d.gui is not needed. I wonder if anyone uses it. If not it can be dropped to avoid more confusion. Wink

Xith3D Getting Started Guide (PDF,HTML,Source)
Offline cfmdobbie

Senior Member




Who, me?


« Reply #11 - Posted 2003-11-22 11:12:37 »

Quote
Sorry for causing confusion. Endolf already explained that xith3d.gui is not needed. I wonder if anyone uses it. If not it can be dropped to avoid more confusion. Wink


It's used by the SimpleRenderEngine and the LWJGL test programs, but it's all hideously out of date anyway.  If you want to maintain current functionality, keep BaseWindow (move it into test) and trash the rest.

Hellomynameis Charlie Dobbie.
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Try the Free Demo of Revenge of the Titans

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (34 views)
2013-05-17 21:29:12

alaslipknot (42 views)
2013-05-16 21:24:48

gouessej (72 views)
2013-05-16 00:53:38

gouessej (71 views)
2013-05-16 00:17:58

theagentd (79 views)
2013-05-15 15:01:13

theagentd (74 views)
2013-05-15 15:00:54

StreetDoggy (116 views)
2013-05-14 15:56:26

kutucuk (139 views)
2013-05-12 17:10:36

kutucuk (140 views)
2013-05-12 15:36:09

UnluckyDevil (149 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.141 seconds with 22 queries.