Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » GEF3D » Lighting
Lighting [message #3878] Tue, 02 June 2009 21:29 Go to next message
Miles Parker is currently offline Miles ParkerFriend
Messages: 1341
Registered: July 2009
Senior Member
In my continuing exploration I'm trying to figure out how to get
lightening to work to add apparant depth to the solid cubes.. I've
found some gl examples such as..

http://www.videotutorialsrock.com/opengl_tutorial/lighting/t ext.php

But the glLightfv method doesn't appear to be part of Graphics3D. Is
thi possilbe to do right now?

thanks!

Miles
Re: Lighting [message #4067 is a reply to message #3878] Tue, 02 June 2009 23:20 Go to previous messageGo to next message
Kristian Duske is currently offline Kristian DuskeFriend
Messages: 64
Registered: July 2009
Member
Hi Miles,

> In my continuing exploration I'm trying to figure out how to get
> lightening to work to add apparant depth to the solid cubes.. I've
> found some gl examples such as..
>
> http://www.videotutorialsrock.com/opengl_tutorial/lighting/t ext.php
>
> But the glLightfv method doesn't appear to be part of Graphics3D. Is
> thi possilbe to do right now?

No, not right now. We haven't added any support for lighting whatsoever
because we didn't see how it was neccessary for diagram editors, which
is our main concern ;-).

If it's just a matter of adding methods to Graphics3D, I don't see why
we couldn't do it though. Jens, what do you think?

By the way: Miles, if I understand correctly what you're trying to do,
you're not interested in editing support for your diagrams, right? This
is only for visualization of agent systems?

Best regards
Kristian
Re: Lighting [message #4280 is a reply to message #4067] Wed, 03 June 2009 00:45 Go to previous messageGo to next message
Miles Parker is currently offline Miles ParkerFriend
Messages: 1341
Registered: July 2009
Senior Member
On 2009-06-02 16:20:01 -0700, Kristian Duske
<kristian.duske@fernuni-hagen.de> said:

> Hi Miles,
>
>> In my continuing exploration I'm trying to figure out how to get
>> lightening to work to add apparant depth to the solid cubes.. I've
>> found some gl examples such as..
>>
>> http://www.videotutorialsrock.com/opengl_tutorial/lighting/t ext.php
>>
>> But the glLightfv method doesn't appear to be part of Graphics3D. Is
>> thi possilbe to do right now?
>
> No, not right now. We haven't added any support for lighting whatsoever
> because we didn't see how it was neccessary for diagram editors, which
> is our main concern ;-).

Right, understood. Still, even with diagrams, you may have shapes such
as handles or complex solids that could benefit from a greater sense of
depth.

>
> If it's just a matter of adding methods to Graphics3D, I don't see why
> we couldn't do it though. Jens, what do you think?
>
> By the way: Miles, if I understand correctly what you're trying to do,
> you're not interested in editing support for your diagrams, right? This
> is only for visualization of agent systems?

That's quite true in general. However, I use GEF extensivly (as well as
Draw2D) because it does such a good job of managing the update of agent
hierarchies and it doesn't appear to have a heavy performance hit.
(Probably more memory than needed though.) I could imagine using
editing support at some point but that would be almost incidental. But
typically I'm wanting to update everything at once with as little
performance hit as possible, and (again, typically) the quickest option
would often be rerendering everything. In contrast to Draw2D my sense
is that all of the figures are rebuilt if they move anyway..
Re: Lighting [message #4562 is a reply to message #4067] Wed, 03 June 2009 09:32 Go to previous message
Jens von Pilgrim is currently offline Jens von PilgrimFriend
Messages: 313
Registered: July 2009
Senior Member
Hi all,

On 2009-06-03 01:20:01 +0200, Kristian Duske
<kristian.duske@fernuni-hagen.de> said:
> No, not right now. We haven't added any support for lighting whatsoever
> because we didn't see how it was neccessary for diagram editors, which
> is our main concern ;-).
>
> If it's just a matter of adding methods to Graphics3D, I don't see why
> we couldn't do it though. Jens, what do you think?

Of course we could add some methods for lighting support. :-) If there
is a volunteer who would like to add them ;-) Note that the Graphics3D
interface is implemented at least by two classes, one for LWJGL, the
other one for X3D!

Generally spoken, we have only implemented so far what we need and what
we think 95% of the users would probably need. If there are other
things, please add a bug report (enhancement request). In most cases,
we didn't implement things because we do not like them, but simply
because we didn't have the time.

One note on lights: While OpenGL supports lights, it doesn't support
shadows. So even if we add lights, maybe the effect won't be as
impressive as expected.

Cheers,

Jens
Re: Lighting [message #561853 is a reply to message #3878] Tue, 02 June 2009 23:20 Go to previous message
Kristian Duske is currently offline Kristian DuskeFriend
Messages: 64
Registered: July 2009
Member
Hi Miles,

> In my continuing exploration I'm trying to figure out how to get
> lightening to work to add apparant depth to the solid cubes.. I've
> found some gl examples such as..
>
> http://www.videotutorialsrock.com/opengl_tutorial/lighting/t ext.php
>
> But the glLightfv method doesn't appear to be part of Graphics3D. Is
> thi possilbe to do right now?

No, not right now. We haven't added any support for lighting whatsoever
because we didn't see how it was neccessary for diagram editors, which
is our main concern ;-).

If it's just a matter of adding methods to Graphics3D, I don't see why
we couldn't do it though. Jens, what do you think?

By the way: Miles, if I understand correctly what you're trying to do,
you're not interested in editing support for your diagrams, right? This
is only for visualization of agent systems?

Best regards
Kristian
Re: Lighting [message #561912 is a reply to message #4067] Wed, 03 June 2009 00:45 Go to previous message
Miles Parker is currently offline Miles ParkerFriend
Messages: 1341
Registered: July 2009
Senior Member
On 2009-06-02 16:20:01 -0700, Kristian Duske
<kristian.duske@fernuni-hagen.de> said:

> Hi Miles,
>
>> In my continuing exploration I'm trying to figure out how to get
>> lightening to work to add apparant depth to the solid cubes.. I've
>> found some gl examples such as..
>>
>> http://www.videotutorialsrock.com/opengl_tutorial/lighting/t ext.php
>>
>> But the glLightfv method doesn't appear to be part of Graphics3D. Is
>> thi possilbe to do right now?
>
> No, not right now. We haven't added any support for lighting whatsoever
> because we didn't see how it was neccessary for diagram editors, which
> is our main concern ;-).

Right, understood. Still, even with diagrams, you may have shapes such
as handles or complex solids that could benefit from a greater sense of
depth.

>
> If it's just a matter of adding methods to Graphics3D, I don't see why
> we couldn't do it though. Jens, what do you think?
>
> By the way: Miles, if I understand correctly what you're trying to do,
> you're not interested in editing support for your diagrams, right? This
> is only for visualization of agent systems?

That's quite true in general. However, I use GEF extensivly (as well as
Draw2D) because it does such a good job of managing the update of agent
hierarchies and it doesn't appear to have a heavy performance hit.
(Probably more memory than needed though.) I could imagine using
editing support at some point but that would be almost incidental. But
typically I'm wanting to update everything at once with as little
performance hit as possible, and (again, typically) the quickest option
would often be rerendering everything. In contrast to Draw2D my sense
is that all of the figures are rebuilt if they move anyway..
Re: Lighting [message #561992 is a reply to message #4067] Wed, 03 June 2009 09:32 Go to previous message
Jens von Pilgrim is currently offline Jens von PilgrimFriend
Messages: 313
Registered: July 2009
Senior Member
Hi all,

On 2009-06-03 01:20:01 +0200, Kristian Duske
<kristian.duske@fernuni-hagen.de> said:
> No, not right now. We haven't added any support for lighting whatsoever
> because we didn't see how it was neccessary for diagram editors, which
> is our main concern ;-).
>
> If it's just a matter of adding methods to Graphics3D, I don't see why
> we couldn't do it though. Jens, what do you think?

Of course we could add some methods for lighting support. :-) If there
is a volunteer who would like to add them ;-) Note that the Graphics3D
interface is implemented at least by two classes, one for LWJGL, the
other one for X3D!

Generally spoken, we have only implemented so far what we need and what
we think 95% of the users would probably need. If there are other
things, please add a bug report (enhancement request). In most cases,
we didn't implement things because we do not like them, but simply
because we didn't have the time.

One note on lights: While OpenGL supports lights, it doesn't support
shadows. So even if we add lights, maybe the effect won't be as
impressive as expected.

Cheers,

Jens
Previous Topic:glTranslatef signature
Next Topic:Some refactoring, standalone draw3d viewers.
Goto Forum:
  


Current Time: Wed Jul 24 15:37:24 GMT 2024

Powered by FUDForum. Page generated in 0.04771 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top