Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
monkee
23
Years of Service
User Offline
Joined: 28th Feb 2003
Location: United Kingdom
Posted: 21st May 2003 16:10
I was wondering if darbasic pro will ever support vertex colours. This would be excellent because I could then prelight my models in said 3D program and export the mesh as an X file (which can contain the data). I've viewed the vertex colours in the microsoft mview directx viewer but they sadly do not appear in my DB program. Also it would facilitate a lot more diverse looking games produced. I would love to do a vertex coloured only game (no dynamic lights) as it looks very cartoony. Please say that a later version will include support! )
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 21st May 2003 16:33
it already supports Vertex Colours... you'll have to import a DirectX 8.1/9.0 X model to be able to use them straight off the bat though, and it MUST be exported with an official exporter from Microsoft/Alias|wavefront/Avid themselves - else you can forget about the FVF feature support.

John's Exporter for Milkshape might support exporting them but Milkshape itself doesn't so i'm not sure (you'll have to wait for Milkshape2 as that will)

don't worry though because right now there is a simple editor being developed so that you can alter the states of your models, then import them later by using the
'make memblock from file', 'make mesh from memblock' & 'make object' commands.

and DBO full support is promised for patch5 so you can export models directly to DBO format (which I'm still waiting on that format setup Mike!!)

the defualt DB code is setup to accept Vertex Colours standardly, which will be grey i there is no current colour ... but you can alter that by putting it into a memblock and editing the 4position

like

function WriteVertexColour( colour as dword, vert as dword )
local ofs as integer
local pos as dword
ofs=12
pos=vert*36+12+ofs :`// 36 byte range, 12 ofset from vertex 0
write memblock dword 1,pos,colour
endfunction

then just convert back

Within the Epic battle of the fates the Shadow and the Angel will meet. With it will harbinger the very fight of good vs evil!
Rob K
Retired Moderator
23
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 21st May 2003 17:57
Using memblocks you can control vertex colours, but I don't think that they are loaded by default from a model.

Do you want Windows menus in your DBP apps? - Get my plugin: http://snow.prohosting.com/~clone99/downloads/tpc_menus_102.zip
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 21st May 2003 18:18
a DirectX 8.1 and 9.0 model will retain all the data that FVF can use, only problem is that only the Microsoft develop and adapted importers are capable of it.

but you can have multiple UV map coords, vertex colour data, specular colour data, point size data, etc...
you can setup the weighting parmeters within Max5 using the Exporter, Max4 didn't do it though (not sure why) and Softimages works a dang treat and a half

Within the Epic battle of the fates the Shadow and the Angel will meet. With it will harbinger the very fight of good vs evil!
monkee
23
Years of Service
User Offline
Joined: 28th Feb 2003
Location: United Kingdom
Posted: 23rd May 2003 01:32
All I want to do is to be able to see the vertex shading as is. I dont really want to fanny around importing or modifying the model. Just be able to view models with no dynamic lighting, just the assigned vertex colours. As I said It does export fine because the vertex colours are visible in the Directx mview program that you get with the SDK. All I need is to be able to view the model in DBpro as it is exported.
If i could work out how to attach an image i could show you what im after. Bah
I was working on a ps2 game last year that used only vertex shading and the odd texture and It was cool because we could render nearly 4 times as many polys untextured on the ps2. Yum Yum. x-d
Dr DooMer
23
Years of Service
User Offline
Joined: 22nd Dec 2002
Location: United Kingdom
Posted: 23rd May 2003 01:47
It could be something to do with your computer - I can't seem to get vertex colours working on mine, either. I've tried importing files with vertex colours and changing vertex colours with memblocks. No luck with either, unfortunately.

Although, I'm still on the trial, so patch 4/4.1 might fix it for me.

"I am a living, thinking entity who was created in the sea of information."
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 23rd May 2003 04:48
well i'm not sure about that, atleast not in pro - i've noticed that a good few thinks that you should be able to do in pro don't actually work, i'll have a little fiddle whilst i'm working on this DLL ... for some reason its being pissy, i know have valid pointers - but activating the actual code i wanted to in the first place is still crashing pro. Long nite ahead

Within the Epic battle of the fates the Shadow and the Angel will meet. With it will harbinger the very fight of good vs evil!

Login to post a reply

Server time is: 2026-07-11 13:58:07
Your offset time is: 2026-07-11 13:58:07