instantreality forum
news: Welcome to the instantreality forums!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
February 24, 2018, 06:53:42 pm


Login with username, password and session length


Pages: [1]
  Print  
Author Topic: export backed tree to .osb with aopt  (Read 4180 times)
sg
Newbie
*
Posts: 41


View Profile
« on: August 04, 2010, 11:07:11 am »

i want to convert plenty of .x3d files to .osb. but by exporting them with »aopt« the imageTexture is ignored. -> WARNING  OpenSg couldn't find image file.
only by exporting the backendTree with »key N« during the running scene the imageTexture is “baked“ within the .osb file.

is there something wrong or could there be a handling error on my side?

example: http://www.designandsystems.de/media//exchange/osb_export_example.zip

could someone have a look on it?

thanks and regards
sebastian
Logged
mzoellner
Jr. Member
**
Posts: 85


View Profile
« Reply #1 on: August 05, 2010, 07:40:40 pm »

I just tested a simple scene with a textured teapot. Exported via n and N (.osg and .osb) the texture was included in the files.

Your files are working on my machine, too. I see a textured cube in all three files.

I am using V2.0.0 build: R-13489 Jul 1 2010 on OS X.
Logged
sg
Newbie
*
Posts: 41


View Profile
« Reply #2 on: August 06, 2010, 08:59:08 am »

hi michi ... thanks for testing,

it is strange, that also the file exported by aopt seems to work on your machine - i can't reproduce this on any pc. as aforesaid the via »N« exportet ones work fine. but it is not a exciting job exporting hundred of files this way ;-). the export via aopt is the problem - there the materials are ignored!

using
V2.0.0 build: R-13584 Aug 6 2010 on OS X. and
V2.0.0 build: R-19963 Jul 22 2010 on Win XP.


by "verify merge material" during aopt export i get some fatals i cant interpret.

what's wrong?



Code:
sebastian-glasers-computer:/ sg$ /Applications/Instant\ Player.app/Contents/MacOS/aopt -i /Users/sg/Desktop/osb_export_example/texturtest.wrl -e /Users/sg/Desktop/osb_export_example/texturtest.osb:"Verify():MaterialMerge():Merge()"
LOG     Avalon   Init: 47/615, V2.0.0 build: R-13584 Aug  6 2010
LOG     Avalon   Read url
LOG     Avalon   Read time: 0.412069
============================================
Call: exportBackend with 4 param
Set Tree Live ... done
Sync Application Graph ...done
Run GraphOp Verify() ... done
Run GraphOp MaterialMerge() ... done
Run GraphOp Merge() ... done
Write to /Users/sg/Desktop/osb_export_example/texturtest.osb ... done
FATAL   Avalon   child not found in NodeProc::subChildCore
FATAL   Avalon   child not found in NodeProc::subChildCore
FATAL   Avalon   child not found in NodeProc::subChildCore
FATAL   Avalon   IndexedFaceSet/FACESET_Cube: Node is part of a tree. setCore(NULL) not allowed
FATAL   Avalon   Shape/143748704: Node is part of a tree. setCore(NULL) not allowed
FATAL   Avalon   ComponentTransform/Cube: Node is part of a tree. setCore(NULL) not allowed
WARNING Avalon   Avalon::exitSystem() call and node/obj left: 0/3317
!!!!!1
!!!!!3
Bus error


bye
sebastian
Logged
mzoellner
Jr. Member
**
Posts: 85


View Profile
« Reply #3 on: August 06, 2010, 09:08:09 am »

You are right. It does not work with aopt. Doesn't find the texture file after exporting to osb.
Logged
sg
Newbie
*
Posts: 41


View Profile
« Reply #4 on: September 01, 2010, 05:02:43 pm »

had any of the developers time to look after this problem? would be a fine thing - it's still needed!

if it's not possible to fix this i have to place some extra time in conversion.

thanks for a hint,
sebastian
Logged
mzoellner
Jr. Member
**
Posts: 85


View Profile
« Reply #5 on: September 03, 2010, 08:11:32 am »

X3DB (binary) does not fit your needs?
Logged
yjung
Administrator
Sr. Member
*****
Posts: 260


View Profile
« Reply #6 on: September 06, 2010, 10:56:29 am »

Hi, just fixed it. Should be available with tomorrow's daily build.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.15 | SMF © 2011, Simple Machines