Harry
Member
|
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 |
|
Esenthel
Administrator
|
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 |
|
Harry
Member
|
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 |
|
Esenthel
Administrator
|
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 |
|
Harry
Member
|
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 |
|
Esenthel
Administrator
|
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 |
|
Harry
Member
|
RE: Beta - drawing
Ok I found the problem. Thanks for help.
|
|
01-05-2010 09:47 PM |
|
Seba
Member
|
RE: Beta - drawing
Highlighting didn't work i Inventory tutorial.
|
|
01-07-2010 12:09 AM |
|
Esenthel
Administrator
|
RE: Beta - drawing
Thanks, this needs to be removed " && Renderer()==RM_SOLID"
|
|
01-07-2010 04:02 AM |
|
menajev
Member
|
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 |
|
Esenthel
Administrator
|
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 |
|