Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Lethal Raptor Games

Members
  • Content Count

    1,029
  • Joined

  • Last visited

Everything posted by Lethal Raptor Games

  1. Thanks for the code, I'll see what I can get out of it
  2. Does any one have code for rendering a second camera to a separate buffer and then to a texture so I can use it on a material for my security camera? I know of the GetBufferColor() function but I'm unsure of the process used to actually get from my second camera to my texture! Can any one help me?
  3. Your right there doesn't seem to be anything for desaturate in "postfilter.frag", I also tried the "postfilter_distancefog.frag" but it still gave me the same grey screen. I have a feeling something else is going here...as well as the failure to recognise "LW_DESATURATE". Would Framework be the better option?
  4. I've made this simple program based on the Post-Processing tutorial which works fine until I set a shader which causes the end result to be a solid grey image. I'm positive it's a problem somewhere when setting the shader because it all rendered fine before I added that code. I've tried 'abstract' file system as well as loading each file directly. Can anyone help? Here's the code : #include "engine.h" int main(int argc,char** argv) { Initialize(); Graphics(640,480); TWorld world=CreateWorld(); TEntity MainCam=CreateCamera(); MoveEntity(MainCam,Vec3(0,5,-20)); CameraClearM
  5. Hmmm, thanks Masterxilo, I had a feeling lighting would be a pain...I'll have to give it more thought=] maybe the surface commands are the best shot, though they're awfully slow when changeing a vertexs postion.. I'll do reasearch thanks,
  6. I want to make my own terrain generator/editor with LOD levels, and the built in surface commands are two slow for me..so I'm going to use OpenGL. But before I go any further with it...would it be possible to set up the terrain model some how to accept leadwerks collision commands, with vehicles and controllers? Everything..? I havn't gone far with this project yet...jsut want to see if its all possible..=] Thanks=]
  7. I'm useing both a directional light and several points - they all have the same problem. Thanks for your thoughts Flexman, I was thinking along similar lines. Floating point errors? So they're a game engine thing? Not a C++ thing? Hasn't anyone tried fixing them? Thanks for the replys..=]
  8. Hey everyone, I'm fairly new to Leadwerks, so go easy on me =] I'm not sure if I'm doing something wrong or not...but I had a building, and lights with the centre at : (0,0,0) Everything was fine until I moved it a huge distance away : (10000,0,10000) - because I have a huge island... Every time The camera moves the shadows are very jumpy, and even some of the objects seem to have the jitters... but when the camera stops so do the jitters...it seems to be less jittery the closer I move everything to the worlds centre.. Any Ideas? or is the answer stareing me in the face?? =]
  9. Ok, I'll declare them before the function, Thanks
  10. You know, just as I posted that I thought, "I know how to fix that," At the beginning of the code (before 'main') i added : TEntity Tailgate; Then when I load the model instead of TEntity TailGate=LoadModel("TailGate.gmf"); I just used : TailGate=LoadModel("TailGate.gmf");!!!! And it works fine....(I feel stupid) Thanks though!!
  11. Here's The code I'm using, Everything else works fine. It just doesn't know what 'TailGate' is, #include "engine.h" void UdateTailGate(void); int TailGateAngle=0; int TailGateStatus=0; int main(int argc,char** argv) { Initialize(); Graphics(1024,768); CreateWorld(); TEntity MainCam=CreateCamera(); PositionEntity(MainCam,Vec3(0,6,-7)); RotateEntity(MainCam,Vec3(30,0,0)); TLight MainLight=CreateSpotLight(20.0); TLight MainLight2=CreateSpotLight(20.0); PositionEntity(MainLight,Vec3(0,12,6)); PositionEntity(MainLight2,Vec3(0,12,-6)); SetShadowmapSize(MainLight,2000);
  12. Ahhh, really? That'd explain a few problems... Thanks carlb! So is this global Entity problem only with 2010 you think? Or its got nothing to do with it?
  13. I'm using C++ 2010, and I'm trying to make a function to rotate a car door, but the door model is loaded in the "main" function so that makes it local only to that function right? How do I get other functions to recognize it too? I've tried Initializing, setting up the graphics and loading the door before "main", but it doesn't work... Any suggestions? (I'm rather new to both C++ and LeadWerks) Thanks
×
×
  • Create New...