Re: [osg-users] OsgParticle variables causing objects to disappear

2011-10-05 Thread Simon White
Not to worry, I redesigned the min and max values to give a better looking 
fire, and now the problem has gone. Still don't know what caused it though, 
gonna worry about that in the future D:

Simon.

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





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


Re: [osg-users] OsgParticle variables causing objects to disappear

2011-10-05 Thread Jason Daly

On 10/05/2011 07:26 AM, Simon White wrote:

Not to worry, I redesigned the min and max values to give a better looking 
fire, and now the problem has gone. Still don't know what caused it though, 
gonna worry about that in the future D:


Your problem might have been caused by small feature culling.  You can 
try disabling it:


mode = camera-getCullingMode();
camera-setCullingMode(mode  ~osg::CullSettings::SMALL_FEATURE_CULLING);

--J

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


Re: [osg-users] OsgParticle variables causing objects to disappear

2011-10-05 Thread Andy Skinner
Maybe far off, but something I've seen:

Do you happen to be working on a mac?  We've seen something on one particular 
graphics card on the mac, where drawing with points sometimes seems to affect 
clipping on other objects.  It seems really weird.

I think that when we didn't set the osg::Point state attribute, it didn't 
happen.  And when we turned off clipping, it didn't happen.  And it only 
happened on one particular graphics card on a mac.

I didn't look at the near and far settings at the time, but I don't see why 
that would be affected by the card/driver.

andy

-Original Message-
Not to worry, I redesigned the min and max values to give a better looking 
fire, and now the problem has gone. Still don't know what caused it though, 
gonna worry about that in the future D:

Simon.

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


Re: [osg-users] OsgParticle variables causing objects to disappear

2011-10-05 Thread Simon White
Thanks for the input guys. I can't replicate the bug because I replaced the 
code with working code, but I'll be sure to come back to this thread if it 
happens again!

Andy, I'm afraid I'm working on Windows with an ATI card (Mobility Radeon 3650 
to be exact), and I'm not using osg::Point at all!

Thanks again, Si.

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





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


[osg-users] OsgParticle variables causing objects to disappear

2011-10-03 Thread Simon White
Hi all,

I have a class extended from osg::Group called FireEffect, which contains 3 
particle systems: a yellow flame, a red flame, and a smoke trail. I also have a 
truck model in the scene.

The truck model and FireEffect object are children of the Root, thus they are 
siblings in the scenegraph.

In my FireEffect I have a variable intensity which modifies the values of 
things like the particle life, size, rate etc. For some reason, when intensity 
is certain values is causes the particles and the truck to flicker and 
disappear completely.

Here is the method which is causing problems:

http://pastebin.com/RnqtXWRx

I have done some debugging and the values I am modifying are not below 0 when 
the objects disappear. I know the arguments themselves look a bit messy; this 
is because I've calculated them using straight lines on a graph, giving a nice 
linear transition from a blazing fire to a smouldering surface. intensity is 
always between 0.0 and 1.0 and two values which cause the problem are 0.4 and 
0.6.

Surely it can't be a scene complexity problem because 1.0 works fine, and that 
is when the most particles are being churned out.

It worries me that the truck object disappears, as it is not related to the 
FireEffect group at all!

I should also mention that I have an HUD with several textured planes which all 
stay visible. The heirarchy:
Root - ProjectionMatrix - ModelMatrix - PAT - Geode - Plane for texture

I was using osg 2.8.5 but updated to 3.0.0 as a last resort before posting 
here. Does anybody have any ideas?

Thanks in advance, Simon.

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





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