Hi,
In creator, I defiened several materials in Material Palette, and set one of
them to model.
At OSG runtime, Can I access the Material Palette and use materials in it? say,
set another material in palette to loaded model.
are there any code clues or examples?
Any help will be
Hi:
The solution was in the same example code I am using (osgpick), but
Glenn Waldron from osggis told me the hint.
Quotiong: {
1) Find the osg::CoordinateSystemNode (CSN) atop your VPB database scene graph;
2) Get the EllipsoidModel from the CSN
3) call
Hi Morris,
Did you try to close only viewer;
rViewer-getEventQueue()-keyPress(osgGA::GUIEventAdapter::KEY_Escape);
rViewer-getEventQueue()-keyRelease(osgGA::GUIEventAdapter::KEY_Escape);
Regards.
Ümit Uzun
2009/10/12 Russell Morris russell.co...@gmail.com
Hey all,
I've been
The code clues are in the OpenFlight Loader/Exporter plug-in
As to accessing the Palettes, I do not believe they are available once
the file has been full loaded they are just used as a reference during
loading to create the states for the nodes.
I believe you would have to write a loader
Hi all,
I'd like to create a flat VPB terrain with a specified projection and I
a having some trouble. I'm hoping someone else have already done this
and can share some insight.
osgdem -t bm_east.tif -l 3 -o qwe.ive
... creates a flat earth in latlong projection. But when I try to
specify
Ok, stupid question.
Does a MatrixTransform that will be modified in an update callback need
to be declared DYNAMIC?
Cory
___
osg-users mailing list
osg-users@lists.openscenegraph.org
J-S' advice is right on.
You also need to be careful about sharing data between threads.
Multithreaded programming is a minefield of difficult to diagnose
problems, most caused by locking order problems or data races. I'm still
learning about this stuff too and am starting to get some really good
Yes and no. :-)
In principal, yes, because conceptually it is dynamic data and you want
to mark it as such.
In practice, probably not. I think the cull traversal pulls the matrix
long before the next frame's update can possibly run.
Furthermore, if you leave the data variance set to
Hi all,
Just drop me an e-mail off-list and I can send you a simple hack for testing it
- e.g. a buoy bobbing on the water surface or something similar.
Dimitrios sent me an example over the weekend, and I've been able to
test the changes I've made with his example. Seems to work well. I'm
Hi Cory,
On 13/10/09 3:47 PM, Cory Riddell wrote:
As I understand it, basically every core has it's own cache. So, if some
data is shared between multiple threads, it may be loaded into multiple
caches all at once. If one thread makes a change, the value cached by
the other core/thread is now
Hi,
I use [b]osg::Node* node = osgDB::readNodeFile()[/b] to load a 3ds file in
openscenegraph but the scale does not seems to be ok.
The geometry I use measure : height 40, length 125 and width 15.
But When I get the radius of this node (just after the readNodeFile) I have
this measure: 2609
Hi all -- Does anyone know which, if any, OSG image file plugins will
support single-precision floating point per RGB component? My image data
is 32-bit float per R, G, and B. If the OSG plugin clamps that to 8-bit
per component during export, or even import, that will not be
acceptable. And
Hi Paul,
I am not sure how about PNGs or other formats, but in such cases I am using my
own format, which I call FRGBA.
I have written an osg plugin in order to handle files in this format. It just
supports simple gzip compression. It also supports 3D textures and mipmapping.
Also almost every
Hi Art,
However, I have never tested if the plugin will also work under windows,
because it depends on ZLIB library. So it uses gzopen, gzread, gzclose instead
of fopen, fread, fclose in order to read from the file.
Just FYI, zlib is normally included in the 3rd party packages by
default,
Hi Paul,
The OSG TIFF plugin support 32-bit float images.
Regards.
--
Christophe Loustaunau
Déclic Création
http://www.declic-creation.com/
2009/10/13 Paul Martz pma...@skew-matrix.com
Hi all -- Does anyone know which, if any, OSG image file plugins will
support single-precision floating
Hi,
you can certainly redistribute the boat model. Please be my guest!!!
Thanks
Dimitrios
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=18229#18229
___
osg-users mailing list
Hi Art -- Thanks, I'd like to take a look at this. I will probably need
to support 3D texture data, which means a regular 2D file format will be
insufficient.
Paul Martz
Skew Matrix Software LLC
_http://www.skew-matrix.com_ http://www.skew-matrix.com/
+1 303 859 9466
Art Tevs wrote:
Hi
Hi There,
I have been trying to compile osgCompute and osgCuda and have been facing
linking problems. I have provided links to all directories as far as I know.
Please find the log below. Any help would be greatly appreciated.
1 Creating library
Paul Martz wrote:
Hi all -- Does anyone know which, if any, OSG image file plugins will
support single-precision floating point per RGB component? My image data
is 32-bit float per R, G, and B. If the OSG plugin clamps that to 8-bit
per component during export, or even import, that will not be
Hi Paul,
ILM has a format called OpenEXR, http://www.openexr.com/. There is an exr
plugin in osg.
-Original Message-
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf
Of Paul Martz
Sent: Tuesday, October 13, 2009 12:17
Paul Martz wrote:
Hi Art -- Thanks, I'd like to take a look at this. I will probably need
to support 3D texture data, which means a regular 2D file format will be
insufficient.
DDS supports 3D images as well.
--J
___
osg-users mailing list
Jolley, Thomas P wrote:
Hi Paul,
ILM has a format called OpenEXR, http://www.openexr.com/. There is an exr
plugin in osg.
The plugin only seems to support 16-bit floats at the moment, though.
(It'll read 32-bit images, but it down-casts them all to 16-bit).
--J
Jason Daly wrote:
Paul Martz wrote:
Hi Art -- Thanks, I'd like to take a look at this. I will probably
need to support 3D texture data, which means a regular 2D file format
will be insufficient.
DDS supports 3D images as well.
Thanks, but DDS is lossy, as noted in my first post.
-Paul
Jason Daly wrote:
FYI, DDS doesn't necessarily imply DXT compressed images. The DDS
format will handle uncompressed 32-bit floating point just fine. I
think the OSG DDS plugin also handles it.
Really? Does the OSG DDS plugin has some kind of option to turn
compression off?
-Paul
I think things will get a lot easier for people when I submit the Cmakeports
support I mentioned in a thread a while back. It can automatically build
zlib alongside the OSG (without including zlib in the source tree).
On Oct 13, 2009 2:21 PM, Jean-Sébastien Guay
jean-sebastien.g...@cm-labs.com
Hi Paul,
The DDS plugin doesn't do any compression itself, it relies on the
osg::Image to be compressed (via the graphics card or some other method like
libsquish) before it gets written. We've used the DDS plugin to write 32bit
single band floating point heightfields with osgEarth before just
Hi Paul,
DDS as a file is not compressed. It has support for packed/compressed texel
formats but their file representation is the same as representaion in
graphic card memory. Besides packed pixel formats it supports almost all
pixel formats used these days (all supported by DirectX).
Paul Martz wrote:
Thanks, but DDS is lossy, as noted in my first post.
Not necessarily, as noted in my first post :-)
--J
___
osg-users mailing list
osg-users@lists.openscenegraph.org
Wojciech Lewandowski wrote:
Hi Paul,
DDS as a file is not compressed. It has support for packed/compressed texel
formats but their file representation is the same as representaion in
graphic card memory. Besides packed pixel formats it supports almost all
pixel formats used these days (all
Thanks for correcting me on DDS, guys, I appreciate it. I'll look into
beefing up the export capability to support 32-bit float per channel.
So, if I understand correctly, if I pass an uncompressed Image to the
DDS plugin for export, it will _not_ compress the data...? This is not
how I
Robert and others,
I checked the stats as you recommended. What I see is that LOD value for both
cameras is increasing when nothing in the application is changing. The same is
true for the CULL value. No other values change by any significant amount,
but LOD and CULL increase indefinitely. Any
Yeah I did try that and it didn't work either. However, for some strange reason
if I call the closing routine once when the window is created, and then again
when I want it closed it works fine. Weird, I'm still trying to wrap my brain
around what is going on. Thanks for the response! Have a
Paul Martz wrote:
Thanks for correcting me on DDS, guys, I appreciate it. I'll look into
beefing up the export capability to support 32-bit float per channel.
So, if I understand correctly, if I pass an uncompressed Image to the
DDS plugin for export, it will _not_ compress the data...? This
33 matches
Mail list logo