Re: [osg-users] osgmaxexp problems

2012-01-31 Thread Sergey Polischuk
Hi If there were osg interface changes between version which ships with osgexp and yours, it can cause a crash. You should recompile osgexp with your osg version.31.01.2012, 11:13, "Seppo" se...@kuutio.net:Hi Farshid, Yes, when 3ds max starts up it gives this error. Could it be since I also use newer OSG version than what was with the current stable release of osgmaxexp (1.0.1)? I have copied the corresponding dll files there too so it is not atleast missing any dll files, but I am not sure if that causes the problem anyway. Thanks,-Seppo From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Farshid LashkariSent: 26. tammikuuta 2012 20:02To: OpenSceneGraph UsersSubject: Re: [osg-users] osgmaxexp problems Hi Seppo,On Tue, Jan 24, 2012 at 12:37 AM, Seppo se...@kuutio.net wrote:I have compiled osgmaxexp svn rev 236 without problems, but when using that I get this error when running 3DS max 2012 (32bit version):DLL (OSGEXP.dle) failed to initialize. Error code 998 - Invalid access to memory location.  Are you getting this error when 3ds max starts up or when you try to export? Cheers,Farshid   ___osg-users mailing listosg-users@lists.openscenegraph.orghttp://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___osg-users mailing listosg-users@lists.openscenegraph.orghttp://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] no texture on object loaded from obj file

2012-01-31 Thread john doe
Hi,

i load a model from an obj or osg file an set a texture to the stateset. after 
starting the program the object has no texture on it, there ist only one color 
on the object (but it is the same hue like the texture) 

Is there something i have forget? I've also tried a TexGen object

Here is my code


Code:

n_plate = readNodeFile(plate.obj);
//n_plate = readNodeFile(plate.osg);
ref_ptrTexture2D myTex = new osg::Texture2D(readImageFile(olive.jpg));
n_plate-getOrCreateStateSet()-setTextureAttributeAndModes(0, 
myTex.get(), StateAttribute::ON);




Thank you!

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





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


Re: [osg-users] OSG Model Editor?

2012-01-31 Thread Dennis Cappendijk
Hi,

Thanks for the replies.

@Zonk: I'm actually looking for an importer (ie, I already have the osg files)

@Andreas: Thanks, I'll give the demo a try.

Thank you!

Cheers,
Dennis

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





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


Re: [osg-users] no texture on object loaded from obj file

2012-01-31 Thread Sebastian Messerschmidt

Hi John?

I guess your obj/osg file simply doesn't supply texture coordinates.
Search the forum/mailing list for similar problems, it has been 
discussed several times (AFAIR)


cheers
Sebastian

Hi,

i load a model from an obj or osg file an set a texture to the stateset. after 
starting the program the object has no texture on it, there ist only one color 
on the object (but it is the same hue like the texture)

Is there something i have forget? I've also tried a TexGen object

Here is my code


Code:

n_plate = readNodeFile(plate.obj);
//n_plate = readNodeFile(plate.osg);
ref_ptrTexture2D  myTex = new osg::Texture2D(readImageFile(olive.jpg));
n_plate-getOrCreateStateSet()-  setTextureAttributeAndModes(0, 
myTex.get(), StateAttribute::ON);




Thank you!

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





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


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


Re: [osg-users] My simple code won't compile with openscenegraph

2012-01-31 Thread Sebastian Messerschmidt

Hi Tom,

To me it sounds a bit like you haven't build openscenegraph.
In order to use OSG you'll have to compile it on your system or get a 
prebuilt version.

There are hints on the openscenegraph site how to build and deploy it.
Also there are minimal projects in the example folder, that lead the way 
towards writing your own osg-based application.


Unfortunally the osg website isn't reachable for me right now, so I 
cannot provide any links (but they are there on right side, believe me ;-))


cheers
Sebastian



Hi,

I'm new to openscenegraph, and I'm trying to create something awesome with it.


Code:

// my hello world code - main.cpp
int main()
{
std::cout  Hello world;
}





When I try to compile this code, I get ten thousand errors. What did I do 
wrong? What am I missing?

Here is what I did after I've created the xcode project with cmake:

1. Right click OpenSceneGraph -  Add -  New Target -  shell tool -...finish
2. Right click myproject -  Add -  New file -  C++
3. Write above code in C++ file
4. Set active target to myproject
5. build and debug


...

Thank you!

Cheers,
tom

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





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


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


Re: [osg-users] My simple code won't compile with openscenegraph

2012-01-31 Thread Paul Martz

On 1/25/2012 4:22 PM, Tom Two wrote:

When I try to compile this code, I get ten thousand errors. What did I do 
wrong? What am I missing?

Here is what I did after I've created the xcode project with cmake:

1. Right click OpenSceneGraph -  Add -  New Target -  shell tool -...finish
2. Right click myproject -  Add -  New file -  C++
3. Write above code in C++ file
4. Set active target to myproject
5. build and debug


You should probably add your application to the CMake system and regenerate the 
xcode files, rather than adding it to the xcode project files that CMake generates.


Or create a separate xcode project for your app, rather than add it to the OSG 
project (which makes more sense in the long run).

   -Paul





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


Re: [osg-users] osgmaxexp problems

2012-01-31 Thread Laurens Voerman

Hi Seppo,
What compiler are you using? I think max 2012 is compiled with VC 2008 
SP 1, (at least the x64 version is; found some hints at autodesk.com 
that's true for x86 too). Using a different compiler for osg or 
osgMaxExp might cause problems.

Laurens.


On 1/31/2012 1:51 PM, Sergey Polischuk wrote:

Hi
If there were osg interface changes between version which ships with 
osgexp and yours, it can cause a crash. You should recompile osgexp 
with your osg version.

31.01.2012, 11:13, Seppo se...@kuutio.net:


Hi Farshid,

Yes, when 3ds max starts up it gives this error. Could it be since I 
also use newer OSG version than what was with the current stable 
release of osgmaxexp (1.0.1)? I have copied the corresponding dll 
files there too so it is not atleast missing any dll files, but I am 
not sure if that causes the problem anyway.


Thanks,

-Seppo

*From:*osg-users-boun...@lists.openscenegraph.org 
mailto:osg-users-boun...@lists.openscenegraph.org 
[mailto:osg-users-boun...@lists.openscenegraph.org 
mailto:osg-users-boun...@lists.openscenegraph.org] *On Behalf Of 
*Farshid Lashkari

*Sent:* 26. tammikuuta 2012 20:02
*To:* OpenSceneGraph Users
*Subject:* Re: [osg-users] osgmaxexp problems

Hi Seppo,

On Tue, Jan 24, 2012 at 12:37 AM, Seppo se...@kuutio.net 
mailto:se...@kuutio.net wrote:


I have compiled osgmaxexp svn rev 236 without problems, but when 
using that I get this error when running 3DS max 2012 (32bit version):


DLL (OSGEXP.dle) failed to initialize. Error code 998 - Invalid 
access to memory location.


 Are you getting this error when 3ds max starts up or when you try to 
export?


Cheers,

Farshid


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

___
osg-users mailing list
osg-users@lists.openscenegraph.org 
mailto:osg-users@lists.openscenegraph.org

http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




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


Re: [osg-users] FOV

2012-01-31 Thread Shaheed Khan
Hi,

em using Flight gear 1.9.0 with osg 2.8.0 

The terrain and sky is generated in the window using 2 cameras far and near

i tried 2 set window color to black using 
Osg - setColor(osg::Vec4(0.0f, 0.0f, 0.0f, 1.0f))
and even tried with 
glut - glclearColor(0.0f, 0.0f, 0.0f, 1.0f) 

but only sky color is set 2 black and terrain and object and still present
how can i remove terrain or set it to black ..

@cris i tried to set the Nodemask to 0 but code doesn't come out of idle 
function ... ie window is not loaded :(



... 

Thank you!

Cheers,
Shaheed

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





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