About Store Forum Documentation Contact



Post Reply 
Beta - drawing
Author Message
Harry Offline
Member

Post: #1
Beta - drawing
I made this code:

Actor skyboxA;
Mesh skybox;

switch(Renderer())
{

case RM_PREPARE:
{
skybox.draw(skyboxA.matrix());
}
break;
}

and my mesh doesn't draw properly (in mesh editor it looks ok). It is too bright. In another parts of code my meshs doesn't draw. What I'm doing wrong?
(This post was last modified: 01-05-2010 07:58 PM by Harry.)
01-05-2010 07:55 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Beta - drawing
so the problem is that it is too bright?
could you make some screens, in ME and in game, and send me the mesh file with textures?
did it display properly before the beta?
01-05-2010 07:59 PM
Find all posts by this user Quote this message in a reply
Harry Offline
Member

Post: #3
RE: Beta - drawing
Yes everything was drawing properly. One of the problem is too bright mesh. In another:

case RM_PREPARE:
{
carM.draw(actor.matrix());
wheelML.draw(wheel[0].matrix());
wheelMR.draw(wheel[1].matrix());
wheelML.draw(wheel[2].matrix());
wheelMR.draw(wheel[3].matrix());
}
break;

it doesn't draw. I see only actors in Physics.draw(). I sent you file with model and photos on PM.
01-05-2010 08:10 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #4
RE: Beta - drawing
I've checked the files, you can't simulate skybox using standard mesh
please use Sky.skybox for that
01-05-2010 08:35 PM
Find all posts by this user Quote this message in a reply
Harry Offline
Member

Post: #5
RE: Beta - drawing
Yes but I want make sphere which imitate skybox and follow the player because I want use atmospheric sky too.

EDIT: And whats with another meshs (car and wheels). Why they doesn't draw?
(This post was last modified: 01-05-2010 08:41 PM by Harry.)
01-05-2010 08:38 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #6
RE: Beta - drawing
skybox + atmospheric sky isn't currently supported
please send me the car mesh files, and post more codes where are you rendering them
please use debugging to check if the codes are called
01-05-2010 08:45 PM
Find all posts by this user Quote this message in a reply
Harry Offline
Member

Post: #7
RE: Beta - drawing
Ok I found the problem. Thanks for help.
01-05-2010 09:47 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Seba Offline
Member

Post: #8
RE: Beta - drawing
Highlighting didn't work i Inventory tutorial.
01-07-2010 12:09 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #9
RE: Beta - drawing
Thanks, this needs to be removed " && Renderer()==RM_SOLID"
01-07-2010 04:02 AM
Find all posts by this user Quote this message in a reply
menajev Offline
Member

Post: #10
RE: Beta - drawing
Using local skeletons, e.g.:
Code:
case drawPrepare:
Cskeleton skel; skel.create(...);
mesh->draw(skel);
causes crash.
01-10-2010 12:18 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #11
RE: Beta - drawing
yes, this is not an error
as in the 'draw' comment, 'draw' doesn't draw the mesh immediately, but mesh is added to the draw list (and pointer to 'skel' is remembered)
01-10-2010 01:33 PM
Find all posts by this user Quote this message in a reply
Post Reply