Per-vertex colors

Software: Away3D 4.x

jimfing, Newbie
Posted: 17 October 2011 09:50 PM   Total Posts: 3

Hello everyone!

Using Away3d 4.0 I’m trying to set per-vertex colors on a mesh.  In SubGeometry you can set the positions, uvs, normals and tangents but no colors! 

This is quite a common feature of other engines… so surprised it’s not in Away3D.  Is it something that simply hasn’t been implemented, or a technical reason?

Love the engine otherwise! 

Looking forward to any help

Regards.

J

   

Avatar
Alejandro Santander, Administrator
Posted: 18 October 2011 01:22 AM   Total Posts: 414   [ # 1 ]

You’d have to write your own shader for that. However, the material system does not expose itself in a simple manner, but focuses instead on managing a very complex set of features efficiently, that are likely to be required in a game. For what you want to do you might be better off using pure Stage3D.

I am curious to see how its done in other engines though. Can you expand on that?

   

Richard Olsson, Administrator
Posted: 18 October 2011 07:25 AM   Total Posts: 1192   [ # 2 ]

My guess is that it’s probably something that could be easily added, and that the main reason that it’s not already is that it’s a bit of a “hello world” feature which is rarely used in practical cases. But even if that was the case it of course should not mean we won’t have it, so my suggestion is that you file an issue report over at GitHub (the away3d-core-fp11 repository) and we will investigate adding this feature in ASAP.

   

jimfing, Newbie
Posted: 18 October 2011 09:16 PM   Total Posts: 3   [ # 3 ]

Thanks for the information!

Although it is used as a “hello world” feature, it’s still useful in a shader-driven engine.  I’ll look into adding it into GitHub.

Kind regards

J

   

jimfing, Newbie
Posted: 18 October 2011 09:23 PM   Total Posts: 3   [ # 4 ]

I’ve opened a new issue:

https://github.com/away3d/away3d-core-fp11/issues/158

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X