How to build from source with OSG

Use this forum to report bugs or ask for help

Moderator: kilo

How to build from source with OSG

Postby chad3006 » Tue Jun 02, 2015 12:14 pm

OK, I successfully built SD development version last night and it works (Ubuntu based Linux). But it looks like it's using PLIB instead of Open Scene Graph because the graphics look about they same as they did. I just kind of dumb dumbed my way through the steps in the install file, so how do I do it with OSG?

Oh yeah, the supercars with rear wings crash SD when I load 'em.
User avatar
chad3006
 
Posts: 244
Joined: Mon Aug 13, 2012 7:56 pm
Location: USA

Re: How to build from source with OSG

Postby MiniJoe » Tue Jun 02, 2015 7:42 pm

Check out the bottom of this page:
http://sourceforge.net/p/speed-dreams/w ... g-osggraph
or if you think that you already have it built, edit the raceengine.xml
You have to change the "graphic" attribute of the "Modules" section in <user settings>/config/raceengine.xml, and give it the "osggraph" value.

raceengine.xml should be in /home/joe/.speed-dreams-2/config
Of course change joe to the correct user
MiniJoe
 
Posts: 100
Joined: Fri Mar 16, 2012 1:32 am

Re: How to build from source with OSG

Postby madbad » Tue Jun 02, 2015 7:46 pm

Hi Chad, have you actually build the osg module before running make?
Code: Select all
cmake -DOPTION_OSGGRAPH=ON

and enabled it in
Code: Select all
.speed-dreams-2/config/raceengine.xml

replacing
Code: Select all
<attstr name="graphic" val="ssggraph"/>

with
Code: Select all
<attstr name="graphic" val="osggraph"/>
User avatar
madbad
 
Posts: 119
Joined: Sat Jan 22, 2011 3:45 pm

Re: How to build from source with OSG

Postby chad3006 » Wed Jun 03, 2015 12:57 pm

OK, thanks guys. I'll give it a try tonight. I didn't have OSG development version, just the plain one, so I'll have to get that first.
User avatar
chad3006
 
Posts: 244
Joined: Mon Aug 13, 2012 7:56 pm
Location: USA

Re: How to build from source with OSG

Postby chad3006 » Wed Jun 03, 2015 6:00 pm

I managed to sneak a little time at work and during my lunch hour and I think I got it working. My file structure is an absolute shambles with "this" crammed here and "that" crammed there, but it works.
User avatar
chad3006
 
Posts: 244
Joined: Mon Aug 13, 2012 7:56 pm
Location: USA

Re: How to build from source with OSG

Postby mikado » Wed Jun 03, 2015 8:45 pm

Congratulations for getting this working!

Just out of curiosity, could you please post a few screenshots to show what it looks like on your machine?
Here is how the OSG graphics look on my computer. There seem to be some problems with reflections on cars. I wonder if this only happens to me :?:

Screenshot from 2015-06-03 22-23-42.jpg
Screenshot from 2015-06-03 22-27-22.jpg
Screenshot from 2015-06-03 22-28-17.jpg
You do not have the required permissions to view the files attached to this post.
mikado
 
Posts: 5
Joined: Fri Jan 30, 2015 7:16 pm

Re: How to build from source with OSG

Postby Snake » Thu Jun 04, 2015 11:56 pm

Those graphics look awesome. One question though, does OSG make the system requierments for SD go up any compared to what they are in SD-2.0.0 and SD2.1.0? I have 2.0.0 now because I can't download the newer versions at the moment. :cry:
Snake
 
Posts: 52
Joined: Wed Apr 29, 2015 5:43 am
Location: Virginia US


Return to Problems, Fixes & Help

Who is online

Users browsing this forum: No registered users and 2 guests

cron