LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

set color on ase file format

Dear fellows

I would like to change color appereance in the 3d picture control as the program runs, how can i do that.
As far as i know in 3d picture control you can only change the color and alpha during making the object if you are using primitives.
But how to change the color after making the model (i.e. changing transformation properties).

And how do you set the color from the ASE format model. ( i also want to change it once the model has been loaded)

Thanks a lot.
-Just a student-
0 Kudos
Message 1 of 10
(5,388 Views)

Hi Nandha,

You can always use the Color Change VI to do just that. I'm not familiar with the ASE format though.

Stephanie

0 Kudos
Message 2 of 10
(5,366 Views)

Dear stephanie

The color change vi only change sets of rgb and alpha value into RGBA data format, the problem is how to apply that RGBA data format into an object, since there is no properties control such as "change object color" in labview 8.2,

or how to change the color of an object in labview 8.2, could you give some example, not the primitives though.

thanks

-Just a student-
0 Kudos
Message 3 of 10
(5,363 Views)
Have you tried using property nodes?
 
 
0 Kudos
Message 4 of 10
(5,353 Views)
I think, that is for changing the background color of a scene.
I've attached some picture to make it clear what i want to know.
 
Thanks a million

-Just a student-
0 Kudos
Message 5 of 10
(5,345 Views)
The ASE loader creates a single mesh.  You have a couple of choices how to do this.
 
1.  Turn the color binding off in the object that will own the mesh and change the material color on the object.
2.  Change the color array for the mesh.
 
Note: if your scene isn't lit you should only modify the color array.
 
Here is an example to demonstrate what I mean.
 
 
You can do similar things with the primitives (spheres, etc) by setting their colors via property nodes... If you are reading the geometry from an object, you will need to cast them to the right geometry type in order to do this.  Alternatively, you can just apply a material to the object as in the example provided.
 
I am trying to keep this somewhat brief, but if you have any questions, I would be glad to help or explain more.
 
 
 
 
Message 6 of 10
(5,337 Views)

Problem solved man,

gee, thanks a bunch

if only i had noticed that change the diffuse means change the way that the object would looked.

i've been searching the "change color" property node all the time.

once again thanks a lot.

-Just a student-
0 Kudos
Message 7 of 10
(5,331 Views)
Hi, Nandha!

Would you be so kind to reveal any example of *.ase - file loading in a "*.ase"+"*.vi" way (i.e. ase-file plus vi wich opens it).
Please.

Thanx a lot!
SH

P.S.: As far as I can see from posts above you were a success in loading ASE-formatted object in LV while i'm still stuck with trying :(.
0 Kudos
Message 8 of 10
(5,104 Views)

Hi Sharonoff,

Have you taken a look at the Load ASE Geometry.vi that is found in the functions palette (it is not in the base package though)? It is found under Programming»Graphics & Sound»3D Picture Control»File Loading. There is some information about File Loading VIs and this Load ASE Geometry VI that can help show you the inputs and outputs for setting it up. Are you getting a specific error or is this a more general question on how to set it up? If you are getting an error, can you tell us what the error says and maybe even post a screenshot of your block diagram? I hope this helps get you started!

 

Carla

National Instruments
Applications Engineer
0 Kudos
Message 9 of 10
(5,081 Views)
You can use the files. I zipped the ase files, so you have to extract it. And btw i am using labview 7.1, it  won't work on labview 8 or above.
-Just a student-
Download All
0 Kudos
Message 10 of 10
(5,068 Views)