Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Ideas about a resource system, and deferred rendering framework
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  21 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Wang Rui  
View profile  
 More options Jun 21 2012, 4:53 am
From: Wang Rui <wangra...@gmail.com>
Date: Thu, 21 Jun 2012 16:53:32 +0800
Local: Thurs, Jun 21 2012 4:53 am
Subject: [osg-users] Ideas about a resource system, and deferred rendering framework

Hi Robert, hi all,

During the past few days, I was thinking of implementing a resource system,
as well as a rendering structure which could support both forward and
deferred rendering for OSG. This could help developers design complex
materials and effects, test cutting-edge GPU techniques, and implement
multi-pass / deferred rendering pipelines with user-friendly interfaces or
even a readable script format. Similar work were already done in some game
engines like Ogre3D, CryEngine and Unreal, and I now plan to work out
something with the same power and can fit our OSG users much better. :-)

My initial thoughts are:
1. A resource system records all the resource used in the rendering
pipeline, including textures, state attributes, shaders, uniforms, camera
parameters, and semantics (not used in GLSL, but very useful IMHO).
Resource can be referred by other resource, or obtained from APIs to be
altered. It can be recorded in an XML-based format for reading/writing,
and external uses.
2. A rendering framework uses one or more techniques, passes, and connect
their inputs/outputs for complex render work. It can also be recorded by
the resource system and is implemented as a group node in the scene graph,
which performs actual forward/deferred rendering work.
3. Some in-built techniques and passes can help implement some complex
effects on customized scene quickly. Common ones I planned include HDR,
SSDO, godrays, depth of field, motion blur, lensflare, color grading and
FXAA. A benchmark could be developed first to show how the framework works.
4. Reader/writers could be developed then to convert DAE, CGFX, or even
other game engine scripts into OSG native rendering pipelines, which will
greatly help migrations from other engines.

The resource system itself is actually abstract and can be extended to
contain whole scene information later, so it could be placed in the osgDB
library. And the new rendering pipeline, which can totally replace current
osgFX functionlities, can be placed in osgFX and rendering resource
management will be done here, too.

I'm glad to work with others who has interests in such an idea, and hope an
initial version could be finished before OSG 3.2. For the first stage I
will borrow some code from the osgPostEffects library in my experimental
osgXI project, to quickly build the low-level APIs of the framework. But
anyone who have better ideas, or could contribute some code or effects will
be really appreciated.

Cheers,

Wang Rui

_______________________________________________
osg-users mailing list
osg-us...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robert Osfield  
View profile  
 More options Jun 21 2012, 6:19 am
From: Robert Osfield <robert.osfi...@gmail.com>
Date: Thu, 21 Jun 2012 11:19:06 +0100
Local: Thurs, Jun 21 2012 6:19 am
Subject: Re: [osg-users] Ideas about a resource system, and deferred rendering framework
Hi Rui,

Great timing.  I've been wondering about the value of developing a
high level scene effects library for the OSG that would sit between
the viewer and model scene graph to enable effects such as you've
mentioned that take advantage of viewer level threading as well
integrate with existing OSG effects like libraries like osgShadow.  I
haven't got to the point of spec'ing up what form this library might
take, let alone getting down to the design and prototyping stage so I
suspect you'll be further along than myself on it so look forward to
hearing more about what you are proposing/working on.

Getting these feature in for OSG-3.2 might be possible but personally
I'd like to get 3.2 sooner rather than later so would suggest aiming
for after 3.2.  However, as much as I wanted to get 3.2 out already my
work and personal life have rather swept me off my feet in the last
six months so getting on to 3.2 has taken me rather longer than I ever
wanted... Over the next week I'll be taking stoke of all my
outstanding work and what is planned for the next few months so will
have a think about 3.2 as part of this.  I can't make a 3.2 without
the community so it's something will need to fit in with availability
of others as well.  For now I'd suggest just concentrate on your
proposals and if they fit into 3.2 time frame than all good, if not no
worry, we can just aim for 3.4.

Cheers,
Robert.

On 21 June 2012 09:53, Wang Rui <wangra...@gmail.com> wrote:

_______________________________________________
osg-users mailing list
osg-us...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph...

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
webmaster  
View profile   Translate to Translated (View Original)
 More options Jun 21 2012, 7:03 am
From: webmaster <webmas...@3dvri.com>
Date: Thu, 21 Jun 2012 19:03:04 +0800 (CST)
Local: Thurs, Jun 21 2012 7:03 am
Subject: Re: [osg-users] Ideas about a resource system, and deferred rendering framework

Great and valuable design and works!

   06,21,2012

在2012-06-21,"Wang Rui" <wangra...@gmail.com> 写道:

-----原始邮件-----
发件人: "Wang Rui" <wangra...@gmail.com>
发送时间: 2012年6月21日 星期四
收件人: "OpenSceneGraph Users" <osg-us...@lists.openscenegraph.org>
主题: [osg-users] Ideas about a resource system, and deferred rendering framework

Hi Robert, hi all,

During the past few days, I was thinking of implementing a resource system, as well as a rendering structure which could support both forward and deferred rendering for OSG. This could help developers design complex materials and effects, test cutting-edge GPU techniques, and implement multi-pass / deferred rendering pipelines with user-friendly interfaces or even a readable script format. Similar work were already done in some game engines like Ogre3D, CryEngine and Unreal, and I now plan to work out something with the same power and can fit our OSG users much better. :-)

My initial thoughts are:
1. A resource system records all the resource used in the rendering pipeline, including textures, state attributes, shaders, uniforms, camera parameters, and semantics (not used in GLSL, but very useful IMHO). Resource can be referred by other resource, or obtained from APIs to be altered. It can be recorded in an XML-based format for reading/writing, and external uses.
2. A rendering framework uses one or more techniques, passes, and connect their inputs/outputs for complex render work. It can also be recorded by the resource system and is implemented as a group node in the scene graph, which performs actual forward/deferred rendering work.
3. Some in-built techniques and passes can help implement some complex effects on customized scene quickly. Common ones I planned include HDR, SSDO, godrays, depth of field, motion blur, lensflare, color grading and FXAA. A benchmark could be developed first to show how the framework works.
4. Reader/writers could be developed then to convert DAE, CGFX, or even other game engine scripts into OSG native rendering pipelines, which will greatly help migrations from other engines.

The resource system itself is actually abstract and can be extended to contain whole scene information later, so it could be placed in the osgDB library. And the new rendering pipeline, which can totally replace current osgFX functionlities, can be placed in osgFX and rendering resource management will be done here, too.

I'm glad to work with others who has interests in such an idea, and hope an initial version could be finished before OSG 3.2. For the first stage I will borrow some code from the osgPostEffects library in my experimental osgXI project, to quickly build the low-level APIs of the framework. But anyone who have better ideas, or could contribute some code or effects will be really appreciated.

Cheers,

Wang Rui

_______________________________________________
osg-users mailing list
osg-us...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Thrall, Bryan  
View profile  
 More options Jun 21 2012, 10:03 am
From: "Thrall, Bryan" <bryan.thr...@flightsafety.com>
Date: Thu, 21 Jun 2012 09:03:26 -0500
Local: Thurs, Jun 21 2012 10:03 am
Subject: Re: [osg-users] Ideas about a resource system, and deferred rendering framework
Wang Rui wrote on 2012-06-21:

> 2. A rendering framework uses one or more techniques, passes, and
connect
> their inputs/outputs for complex render work. It can also be recorded
by the
> resource system and is implemented as a group node in the scene graph,
> which performs actual forward/deferred rendering work.

It seems like osgPPU already does this; you might want to look at it to
see if it meets your needs, or at least could inspire what you're doing.

Hope this helps!
--
Bryan Thrall
Principal Software Engineer
FlightSafety International
bryan.thr...@flightsafety.com

_______________________________________________
osg-users mailing list
osg-us...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Wang Rui  
View profile  
 More options Jun 21 2012, 10:07 am
From: Wang Rui <wangra...@gmail.com>
Date: Thu, 21 Jun 2012 22:07:24 +0800
Local: Thurs, Jun 21 2012 10:07 am
Subject: Re: [osg-users] Ideas about a resource system, and deferred rendering framework

Thanks Bryan,

Yes, I paid close attention to osgPPU since it appeared. I believe it would
be very helpful for me to design the framework, although the script system
we are going to use may differ. :-)

Wang Rui

2012/6/21 Thrall, Bryan <bryan.thr...@flightsafety.com>

_______________________________________________
osg-users mailing list
osg-us...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter Bear  
View profile  
 More options Jun 21 2012, 4:07 pm
From: "Peter Bear" <th3fly...@gmail.com>
Date: Thu, 21 Jun 2012 22:07:21 +0200
Local: Thurs, Jun 21 2012 4:07 pm
Subject: Re: [osg-users] Ideas about a resource system, and deferred rendering framework
I've been doing some thought of this kind of stuff myself, and it was actually a part of the reason I was considering hopping over to Ogre3D. I would actually suggest however taking a look at Light Indexed Deferred Rendering or Inferred Rendering as possible alternate implementations however, which address some of the issues deferred rendering has at the expense of a little bit of performance. There is something else to take in to account performance wise. It may be wise to design the resource manager in a data-orientated way, meaning to store all of a variable's values, such as a vec3's x value, in a single array. dtEntity's properties class seems to do this. This will assist in preventing cache misses, and thus increase the speeds of going through data. I would suggest however using memsize types where possible (I.E. using size_t instead of unsigned int), which will eat up slightly more memory, but will also help prevent memory allocation errors on 64 bit platforms.

Cheers,
Peter

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=48415#48415

_______________________________________________
osg-users mailing list
osg-us...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sergey Kurdakov  
View profile  
 More options Jun 21 2012, 4:39 pm
From: Sergey Kurdakov <sergey.fo...@gmail.com>
Date: Fri, 22 Jun 2012 00:39:20 +0400
Local: Thurs, Jun 21 2012 4:39 pm
Subject: [osg-users] Ideas about a resource system, and deferred rendering framework

Hi Wang,

might be not quite a significant point,
but osg based Flightgear has a ongoing Project Rembrandt

http://wiki.flightgear.org/Project_Rembrandt

it has some similar things done,
so could serve for inspiration.

Regards
Sergey

_______________________________________________
osg-users mailing list
osg-us...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Frederic Bouvier  
View profile  
 More options Jun 22 2012, 9:41 am
From: Frederic Bouvier <fredlis...@free.fr>
Date: Fri, 22 Jun 2012 15:41:16 +0200 (CEST)
Local: Fri, Jun 22 2012 9:41 am
Subject: Re: [osg-users] Ideas about a resource system, and deferred rendering framework
I was going to raise that point. Flightgear has for some years now a system where designers can express their statesets in XML files called effects. A statesets is called a "Pass" in FG (or a FG Pass is implemented with a stateset). You can add multiple passes in a Technique, allowing you to redraw the same geometry with multiple statesets (including render bins details). An effect file gathers multiple techniques that have a predicate, based on supported extensions and internal FG switches, which is evaluated at run time. The multiple techniques allow us to render the water or the urban areas differently based on user preferences and GPU capabilities.

Beside that effect system, we introduced a deferred renderer called 'Rembrandt' (currently still experimental but it will be present in the next release in August) where the different stages of the renderer are also described in XML. In that XML we can add rendering buffers (textures for RTT), specify rendering orders and assign effects to stages. The default pipeline has boom and ambient occlusion that can be switched on and off at run time.

If you have any question, you can consult the wiki page or ask

Regards,
-Fred

----- Mail original -----
De: Sergey Kurdakov

Hi Wang,

might be not quite a significant point,
but osg based Flightgear has a ongoing Project Rembrandt

http://wiki.flightgear.org/Project_Rembrandt

it has some similar things done,
so could serve for inspiration.

Regards
Sergey

_______________________________________________
osg-users mailing list
osg-us...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph...
_______________________________________________
osg-users mailing list
osg-us...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Wang Rui  
View profile  
 More options Jun 22 2012, 9:55 am
From: Wang Rui <wangra...@gmail.com>
Date: Fri, 22 Jun 2012 21:55:50 +0800
Local: Fri, Jun 22 2012 9:55 am
Subject: Re: [osg-users] Ideas about a resource system, and deferred rendering framework

Hi Fred and Sergey,

Thanks for the great information. I viewed the Rembrandt wiki page and love
the design of the effect files. I will consider merge some of the concepts
of Rembrandt if possible, along with current osgPPU and osgPostEffects
projects, to try designing an extensible system for all. I would like to
submit some of my initial code here for all of you to review and see if it
could fit everyone's taste. I hope I could have done that in the following
week.

Thanks,

Wang Rui

2012/6/22 Frederic Bouvier <fredlis...@free.fr>

_______________________________________________
osg-users mailing list
osg-us...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Wang Rui  
View profile  
 More options Sep 10 2012, 10:57 am
From: Wang Rui <wangra...@gmail.com>
Date: Mon, 10 Sep 2012 22:57:19 +0800
Local: Mon, Sep 10 2012 10:57 am
Subject: Re: [osg-users] Ideas about a resource system, and deferred rendering framework

Hi all,

Just to announce that the material system is still in progress and
I've just made the first version for myself to test and use. An
optimized version with a complete deferred shading pipeline (XML
files) will be submitted if it could fit most requirements.

As to share my current work with anyone who are also interested in
this idea and implementations, I'd like to attach the source files
along with this mail instead of submitting it in full fling. If you do
have better ideas, think the work is misdirected or needs to be fixed
in some parts, please don't hesitate to tell me. A second version with
more test files and a detailed XML file introduction will be updated
soon after some days.

Thanks,

Wang Rui

2012/6/21 Wang Rui <wangra...@gmail.com>:

  osgeffect.zip
14K Download

_______________________________________________
osg-users mailing list
osg-us...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeremy Moles  
View profile  
 More options Sep 10 2012, 12:03 pm
From: Jeremy Moles <cubic...@gmail.com>
Date: Mon, 10 Sep 2012 12:03:39 -0400
Local: Mon, Sep 10 2012 12:03 pm
Subject: Re: [osg-users] Ideas about a resource system, and deferred rendering framework

I'm testing this out, but you appear to have left noise_tex.jpg out of
the zip. :)

_______________________________________________
osg-users mailing list
osg-us...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph...

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Frederic Bouvier  
View profile  
 More options Sep 10 2012, 1:29 pm
From: Frederic Bouvier <fredlis...@free.fr>
Date: Mon, 10 Sep 2012 19:29:32 +0200 (CEST)
Local: Mon, Sep 10 2012 1:29 pm
Subject: Re: [osg-users] Ideas about a resource system, and deferred rendering framework
Hi Jeremy,

De: "Jeremy Moles"

> I'm testing this out, but you appear to have left noise_tex.jpg out of
> the zip. :)

You should be able to use this one :
https://gitorious.org/fg/fgdata/blobs/master/Textures/noise_tex.jpg
 ;-)

Regards,
-Fred
_______________________________________________
osg-users mailing list
osg-us...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeremy Moles  
View profile  
 More options Sep 10 2012, 10:22 pm
From: Jeremy Moles <cubic...@gmail.com>
Date: Mon, 10 Sep 2012 22:22:46 -0400
Local: Mon, Sep 10 2012 10:22 pm
Subject: Re: [osg-users] Ideas about a resource system, and deferred rendering framework

On Mon, 2012-09-10 at 22:57 +0800, Wang Rui wrote:
> Hi all,

> Just to announce that the material system is still in progress and
> I've just made the first version for myself to test and use. An
> optimized version with a complete deferred shading pipeline (XML
> files) will be submitted if it could fit most requirements.

> As to share my current work with anyone who are also interested in
> this idea and implementations, I'd like to attach the source files
> along with this mail instead of submitting it in full fling. If you do
> have better ideas, think the work is misdirected or needs to be fixed
> in some parts, please don't hesitate to tell me. A second version with
> more test files and a detailed XML file introduction will be updated
> soon after some days.

This looks really cool so far. I'd be really interested to know if it
supports the following (and would be willing to create examples if
you're willing to help)...

Scenario: I want to render an entire subgraph to an FBO texture once,
then apply 2 or more completely different shaders in some order, then
put the final result into a last texture to be used somewhere in the
scene. I'm doing a guassian blur, which typically applies two different
shaders for x and y.

I have this working in osgPPU, but I think you already have enough to do
it here, I just couldn't put the pieces together. :)

_______________________________________________
osg-users mailing list
osg-us...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph...

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Wang Rui  
View profile  
 More options Sep 10 2012, 10:55 pm
From: Wang Rui <wangra...@gmail.com>
Date: Tue, 11 Sep 2012 10:54:47 +0800
Local: Mon, Sep 10 2012 10:54 pm
Subject: Re: [osg-users] Ideas about a resource system, and deferred rendering framework
Hi Jeremy,

Thanks for the tests and feedback. I'm focusing on creating a material
system which may be a little similar to the Ogre one but will be very
easy to integrate with OSG scenes. I'd like to also have a benchmark
including a complete deferred shading pipeline in the near future to
show others how OSG produces realistic worlds. :-)

Your requirement could be easiliy implemented with one forward pass
rendering the scene to a texture, and two deferred passes doing the
blur work with the texture as input. A final compositing pass will
make use of the outputs of the blur passes and output to a new
texture. You can get and use the new texture then in the scene for
your own purpose instead of direct displaying them on screen. I'd like
to upload a DOF effect file and an updated example some days later to
demonstrate how these work.

Thanks,

Wang Rui

2012/9/11 Jeremy Moles <cubic...@gmail.com>:

> On Mon, 2012-09-10 at 22:57 +0800, Wang Rui wrote:
> This looks really cool so far. I'd be really interested to know if it
> supports the following (and would be willing to create examples if
> you're willing to help)...

> Scenario: I want to render an entire subgraph to an FBO texture once,
> then apply 2 or more completely different shaders in some order, then
> put the final result into a last texture to be used somewhere in the
> scene. I'm doing a guassian blur, which typically applies two different
> shaders for x and y.

> I have this working in osgPPU, but I think you already have enough to do
> it here, I just couldn't put the pieces together. :)

_______________________________________________
osg-users mailing list
osg-us...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph...

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sergey Polischuk  
View profile  
 More options Sep 11 2012, 4:37 am
From: Sergey Polischuk <pol...@yandex.ru>
Date: Tue, 11 Sep 2012 12:37:24 +0400
Local: Tues, Sep 11 2012 4:37 am
Subject: Re: [osg-users] Ideas about a resource system, and deferred rendering framework
Hi

functionally it is about same as osgPPU as far as i can tell, but more straightforward and easy to use. I like it :)
Was missing ogre-like materials and compositiors when working with osg, tyvm for your work.

10.09.2012, 18:57, "Wang Rui" <wangra...@gmail.com>:

_______________________________________________
osg-users mailing list
osg-us...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph...

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeremy Moles  
View profile  
 More options Sep 11 2012, 10:24 am
From: Jeremy Moles <cubic...@gmail.com>
Date: Tue, 11 Sep 2012 10:19:45 -0400
Local: Tues, Sep 11 2012 10:19 am
Subject: Re: [osg-users] Ideas about a resource system, and deferred rendering framework

Are there ever cases, when doing sophisticated layering of rendering
like this, that you'd want to manually "kick off" the EffectCompositor
for just a single frame and update the texture only once? (For example,
by setting the NodeMask to 0xF for one frame, then back to 0x0 when
you're done updating the View).

Is there a term for this kind of approach, and would it make sense to
also support this model of rendering directly or should it be left up to
the user?

_______________________________________________
osg-users mailing list
osg-us...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph...

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jean-Sébastien Guay  
View profile  
 More options Sep 11 2012, 7:53 pm
From: Jean-Sébastien Guay <jean_...@videotron.ca>
Date: Tue, 11 Sep 2012 19:53:44 -0400
Local: Tues, Sep 11 2012 7:53 pm
Subject: Re: [osg-users] Ideas about a resource system, and deferred rendering framework
Hi Jeremy,

Is there a term for this kind of approach? Well "impostors" comes to
mind. That's where you would replace a complex mesh by a quad with a
texture representing the complex mesh. Then when some criteria changes
significantly (orientation of the view to the object, light source
position, etc) you would re-render the texture once to fit the new
criteria. This can be useful for far away meshes, for example trees
where a close mesh is used, then lower and lower LODs, and eventually
just a quad with a texture. Impostors are used so that the texture is
still dynamic, instead of just a static billboard (which tend to look
obviously like static billboards).

Hope this helps,

J-S

On 11/09/2012 10:19 AM, Jeremy Moles wrote:

--
______________________________________________________
Jean-Sebastien Guay              jean_...@videotron.ca
                     http://whitestar02.dyndns-web.com/

_______________________________________________
osg-users mailing list
osg-us...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Wang Rui  
View profile  
 More options Sep 11 2012, 10:10 pm
From: Wang Rui <wangra...@gmail.com>
Date: Wed, 12 Sep 2012 10:09:56 +0800
Local: Tues, Sep 11 2012 10:09 pm
Subject: Re: [osg-users] Ideas about a resource system, and deferred rendering framework
Hi Jeremy,

I will add a setEnable() method for each technique and pass of the
compositor so we can control the forward/deferred rendering work more
accurately. A texture which is attached with certain pass won't be
updated if the pass is disabled, and will become activated when the
pass is enabled again. I may upload the new version this weekend and
hope it will help achieve your goal.

Wang Rui

2012/9/11 Jeremy Moles <cubic...@gmail.com>:

> On Tue, 2012-09-11 at 10:54 +0800, Wang Rui wrote:
> Are there ever cases, when doing sophisticated layering of rendering
> like this, that you'd want to manually "kick off" the EffectCompositor
> for just a single frame and update the texture only once? (For example,
> by setting the NodeMask to 0xF for one frame, then back to 0x0 when
> you're done updating the View).

> Is there a term for this kind of approach, and would it make sense to
> also support this model of rendering directly or should it be left up to
> the user?

_______________________________________________
osg-users mailing list
osg-us...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph...

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeremy Moles  
View profile  
 More options Sep 17 2012, 11:34 am
From: Jeremy Moles <cubic...@gmail.com>
Date: Mon, 17 Sep 2012 11:33:58 -0400
Local: Mon, Sep 17 2012 11:33 am
Subject: Re: [osg-users] Ideas about a resource system, and deferred rendering framework

Hi Wang,

Did you ever get a chance to work up an example showing something like
this? I've been trying to get it to work using a modified blur-x/blur-y
approach from osgPPU, but have had no success.

_______________________________________________
osg-users mailing list
osg-us...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph...

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
michael kapelko  
View profile  
 More options Nov 17 2012, 1:24 am
From: michael kapelko <korn...@gmail.com>
Date: Sat, 17 Nov 2012 13:03:02 +0700
Local: Sat, Nov 17 2012 1:03 am
Subject: Re: [osg-users] Ideas about a resource system, and deferred rendering framework

What's the progress on this? And is there any open repository?

2012/9/17 Jeremy Moles <cubic...@gmail.com>

_______________________________________________
osg-users mailing list
osg-us...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Wang Rui  
View profile  
 More options Nov 17 2012, 1:39 am
From: Wang Rui <wangra...@gmail.com>
Date: Sat, 17 Nov 2012 14:31:21 +0800
Local: Sat, Nov 17 2012 1:31 am
Subject: Re: [osg-users] Ideas about a resource system, and deferred rendering framework

Hi Michael,

Current implementation is maintained in osgRecipes (
https://github.com/xarray/osgRecipes), and some snapshots are shared in the
mail-list a few days ago using both VDSM and the compositor.

Wang Rui

2012/11/17 michael kapelko <korn...@gmail.com>

_______________________________________________
osg-users mailing list
osg-us...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »