Re: [osg-users] How to save a specific tile info in a terrain scene?

2012-05-16 Thread Cao Wenjie
Thanks Robert :D Now I got a much clear picture I avoid this problem by wrote a after-load routine. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=47742#47742 ___ osg-users mailing list

[osg-users] How to save a specific tile info in a terrain scene?

2012-05-13 Thread Cao Wenjie
Hi, I have a terrain scene load from a terrain.osg file, I can see data like hightField and imageLayer in the terrain.osg file. So, when I use osgDB::readNodeFile to load the terrain, osg will auto generate the TerrainTile - Tile - Geode - Geometry scene graph for me base on those data,

[osg-users] [how to]control the content of saved .osg file?

2012-05-05 Thread Cao Wenjie
Hi, I am working on a multi-texture issue, and confused about how to save the result: The Process is simple, I read a model from .osg or .ive file, then set a new texture unit 1 to it, so it bleng with the model's original texture. While test on the standard cow.osg, saved new.osg contain

Re: [osg-users] [silly and closed....]Control the content of saved .osg file?

2012-05-05 Thread Cao Wenjie
Made a silly mistake I should save the Geode instead of rootNode read into. and, I can't find a way to delete this post XD -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=47562#47562 ___

Re: [osg-users] Terrain texture brush implementation

2012-04-03 Thread Cao Wenjie
Sorry for the late reply, away from work for some reason~ And, THANKS Jason! That's exactly what I want! Find the Geometry of terrainTile which my mouse point at, then loop change alpha of effected vertex in Geometry's ColorArray, all looks fine~~ : -) -- Read this topic

[osg-users] osgEphemeris conflict with overlayNode?

2012-04-03 Thread Cao Wenjie
I create a line on the terrain using overlayNode, all looks fine. Then, I add a EphemerisModel to the scene to create some environment effect. After that, rotate camera is fine, but when I move camera(w a s d), the line I created moves on the terrain surface! confusing, ~ @_@ ~ scene

[osg-users] Terrain texture brush implementation

2012-02-28 Thread Cao Wenjie
Hi, As OSG newbie, I'm working on a terrain texture brush task. My goal: Use mouse controlled brush paint grass area on a prebuild terrain(has original texture) Progress: Now I successfully complete a demo, but the method I use seems unattractive. My implementation now: (Use OverlayNode