OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

SpeedTree 6.0 integration


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General [3rdparty]
View previous topic :: View next topic  
Author Message
michaelbach (Michael Bach Jensen)
User


Joined: 07 Oct 2009
Posts: 25

PostPosted: Thu Feb 02, 2012 2:38 pm    Post subject:
SpeedTree 6.0 integration
Reply with quote

Hi, everyone!

Like others before us, we are trying to integrate SpeedTree into our OpenSceneGraph-based application and are having some trouble.

We are using the custum-drawable approach and the trees are (finally) rendering fine.

The problem is that, although simple objects like cow.osg render ok, paged terrains do not. Neither does the stats view.

I think I have tried every imaginable combination of glDisable and state dirtying function there is without luck.

I have attached a picture of the way it looks atm. Does anyone have a clue as to what might be wrong? Those lines protruding from the center is the terrain!

Thank you!

Cheers,
Michael
Back to top
View user's profile Send private message
hybr
Appreciator


Joined: 26 Jun 2009
Posts: 454

PostPosted: Tue Feb 07, 2012 10:46 am    Post subject:
SpeedTree 6.0 integration
Reply with quote

Check gl modelview and projection matrices just before terrain rendering (in draw callback f.e.).
Also you can use gDebugger or similar tool to get snapshot of opengl state just before terrain rendering with SpeedTree stuff in scene and without it, difference will give you a clue about what's going wrong.

02.02.2012, 18:38, "Michael Bach Jensen" <>:
Quote:
Hi, everyone!

Like others before us, we are trying to integrate SpeedTree into our OpenSceneGraph-based application and are having some trouble.

We are using the custum-drawable approach and the trees are (finally) rendering fine.

The problem is that, although simple objects like cow.osg render ok, paged terrains do not. Neither does the stats view.

I think I have tried every imaginable combination of glDisable and state dirtying function there is without luck.

I have attached a picture of the way it looks atm. Does anyone have a clue as to what might be wrong? Those lines protruding from the center is the terrain!

Thank you!

Cheers,
Michael

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

Attachments:
http://forum.openscenegraph.org//files/osgspeedtree_164.jpg




------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
michaelbach (Michael Bach Jensen)
User


Joined: 07 Oct 2009
Posts: 25

PostPosted: Wed Feb 08, 2012 10:14 am    Post subject:
Reply with quote

Hi, hybr

Thank you! I hadn't thought of the view and projection matrices - I was focused on still active shader programs (which I later ruled out, though).

Also, I will try gDebugger to see if that can shed some light on the issue.

Cheers,
Michael
Back to top
View user's profile Send private message
hroch
User


Joined: 14 Oct 2011
Posts: 77

PostPosted: Wed Feb 08, 2012 2:00 pm    Post subject:
Reply with quote

Hi,

I had similar problem with using geometry shader.
Setting parametr GL_GEOMETRY_VERTICES_OUT_EXT with correct number of vertices helped...

Cheers,
Filip
Back to top
View user's profile Send private message
danoo
Appreciator


Joined: 16 Dec 2011
Posts: 146

PostPosted: Fri Mar 21, 2014 6:02 am    Post subject:
Reply with quote

Hi Michael

I wonder if your SpeedTree and terrain rendering is doing ok? We are about to integrate SpeedTree and we use paged/tiled terrain aswell.

Can you provide example code of how you integrated the SpeedTree classes and shaders into OSG? and also share some insights on the issues you faced?

I would be grateful!

Cheers,
Daniel
Back to top
View user's profile Send private message
Bush, Alex W.
Guest





PostPosted: Fri Mar 21, 2014 5:46 pm    Post subject:
SpeedTree 6.0 integration
Reply with quote

My group is also implementing SpeedTree and having some trouble. Any help would be greatly appreciated. I managed to isolate OSG's OpenGL state by enabling glPush/glPop statements in the SpeedTree library (I know this isn't optimal), but I still can't get the 3D trees to render. Billboard trees are working (minus smooth fading between angles).

Alex

-----Original Message-----
From: [mailto:] On Behalf Of Daniel Schmid
Sent: Friday, March 21, 2014 2:03 AM
To:
Subject: Re: [3rdparty] SpeedTree 6.0 integration

Hi Michael

I wonder if your SpeedTree and terrain rendering is doing ok? We are about to integrate SpeedTree and we use paged/tiled terrain aswell.

Can you provide example code of how you integrated the SpeedTree classes and shaders into OSG? and also share some insights on the issues you faced?

I would be grateful!

Cheers,
Daniel

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








------------------
Post generated by Mail2Forum
Back to top
danoo
Appreciator


Joined: 16 Dec 2011
Posts: 146

PostPosted: Wed Nov 04, 2015 7:47 pm    Post subject:
Reply with quote

Any examples available meanwhile?

Thank you!

Cheers,
Daniel
Back to top
View user's profile Send private message
SMesserschmidt (Sebastian Messerschmidt)
Forum Moderator


Joined: 10 Sep 2013
Posts: 789

PostPosted: Wed Nov 04, 2015 7:50 pm    Post subject:
SpeedTree 6.0 integration
Reply with quote

Hi Daniel,
Have you asked SpeedTree for integration examples?

Cheers
Sebastian
Quote:
Any examples available meanwhile?

Thank you!

Cheers,
Daniel

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









------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General [3rdparty] All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts Loading problem, OpenVR integration Oneiros General 8 Wed Nov 02, 2016 4:59 pm View latest post
No new posts VR headset integration cbuchner1 General 7 Wed Mar 30, 2016 1:26 pm View latest post
No new posts mygui integration (for Wang Rui) eugustus General 27 Mon Nov 09, 2015 7:03 pm View latest post
No new posts Any (free) alternatives to SpeedTree? cbuchner1 General 0 Thu Nov 05, 2015 10:14 am View latest post
No new posts Speedtree Implementation danoo General 1 Wed Nov 04, 2015 8:05 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP