Jump to content

Gray Screen in v2.3


Guest Gutierrez
 Share

Recommended Posts

Guest Gutierrez

i buy update 2.3 but now framewerks no work, screen all grey.

please help !!!

 

i have ati mobility hd 3400, maybe problem.

 

sorry very bad english, use google translator.

Link to comment
Share on other sites

Guest Gutierrez

Now I have black screen, all code is:

 

#include "framewerk.h"

using namespace leadwerks;

 

int main(int argc, char** argv)

{

 

bool fullscreen=false;

int gwidth=640;

int gheight=480;

int lighton=0;

 

Initialize();

//Create a graphics context

if(fullscreen==false)

Graphics(gwidth,gheight);

 

if(fullscreen==true)

Graphics(gwidth,gheight,32);

 

Framewerk fw;

fw.Create();

 

 

SetShadowQuality(1);

 

TWorld world=CreateWorld();

if (!world)

{

MessageBoxA(0,"Error","Failed to create world.",0);

goto exitapp;

}

 

 

Collisions(3,2,true);

Collisions(1,2,true);

Collisions(1,3,true);

 

//Load a model

TEntity scene=LoadScene("Maps/undergrounds.sbx");

EntityType(scene,2);

 

 

//Create a light

TLight light=CreateSpotLight(7,0);

PositionEntity(light,Vec3(0,5,0));

LightConeAngles(light,0,30);

 

TController player=CreateController();

EntityType(player,3);

SetBodyDamping(player,0.0);

SetWorldGravity(Vec3(0,-9.80665f*2,0));

SetBodyMass( player,10);

 

PositionEntity (player,Vec3(-5,30,-20));

 

 

float move=0.0;

float strafe=0.0;

TVec3 camrotation=Vec3(0);

float mx=0;

float my=0;

HideMouse();

MoveMouse(GraphicsWidth()/2,GraphicsHeight()/2);

 

TMesh lilcube=CreateCube();

EntityParent(lilcube,fw.GetMain().GetCamera());

PositionEntity(lilcube,Vec3(0,0,3.5));

HideEntity(lilcube);

 

TBody body=CreateBodyBox();

SetBodyMass(body,0.8);

EntityType(body,1);

TMesh mesh=CreateCube();

EntityParent(mesh,body);

PositionEntity(body,Vec3(0,5,-30));

 

 

fw.GetRenderer().SetBloom( true );

 

 

//Main loop

while(!KeyHit(KEY_ESCAPE)) {

//Camera looking

mx=MouseX()-GraphicsWidth()/2;

my=MouseY()-GraphicsHeight()/2;

MoveMouse(GraphicsWidth()/2,GraphicsHeight()/2);

camrotation.X=camrotation.X+my/10.0;

camrotation.Y=camrotation.Y-mx/10.0;

RotateEntity(fw.GetMain().GetCamera(),camrotation);

//Player movement

move=KeyDown(KEY_W)-KeyDown(KEY_S);

strafe=KeyDown(KEY_D)-KeyDown(KEY_A);

//Jumping

float jump=0.0;

if (KeyHit(KEY_SPACE)) {

if (!ControllerAirborne(player)) {

jump=6.5;

}

}

//Run

if (KeyDown(KEY_LSHIFT)||KeyDown(KEY_RSHIFT)) {

if (!ControllerAirborne(player)) {

move==7.0;

strafe==7.0;

}

}

//Set controller input

fw.Update();

UpdateController(player,camrotation.Y,move*3,strafe*3,jump,15,1);

//Update the world

 

//Position the camera

TVec3 playerpos=EntityPosition(player);

TVec3 camerapos=EntityPosition(fw.GetMain().GetCamera());

camerapos.Y=Curve(playerpos.Y+0.85,camerapos.Y,2.0);

camerapos=Vec3(playerpos.X,camerapos.Y,playerpos.Z);

PositionEntity(fw.GetMain().GetCamera(),camerapos);

 

TVec3 lilpos=EntityPosition(lilcube,1);

 

if (KeyHit(KEY_F))

AddBodyForce(body,Vec3(0,0,1500));

 

if (KeyHit(KEY_Q))

lighton++;

 

if (lighton==2)

lighton=0;

 

if (lighton==1)

{

RotateEntity(light,Vec3(0,0,0),0);

EntityParent(light,fw.GetMain().GetCamera());

PositionEntity(light,Vec3(0,0,0));

}

else

{

 

EntityParent(light,0);

PositionEntity(light,Vec3(0,-5555550,0));

}

 

 

if (KeyDown(KEY_E))

{

 

EntityParent(body,fw.GetMain().GetCamera());

PositionEntity(body,Vec3(0,-0.5,2.2));

SetBodyVelocity(body,Vec3(0,0,0),0);

SetBodyOmega(body, Vec3(0,0,0),0 );

CalcBodyOmega(body,Vec3(0,0,0),0);

 

}

else

{

 

EntityParent(body,0);

 

}

 

 

fw.Render();

 

//Render the world

 

Flip(0);

 

}

 

exitapp:

return Terminate();

}

 

 

Very strange problem!

Link to comment
Share on other sites

THIS might help.

AMD Bulldozer FX-4 Quad Core 4100 Black Edition

2 x 4GB DDR3 1333Mhz Memory

Gigabyte GeForce GTX 550 Ti OC 1024MB GDDR5

Windows 7 Home 64 bit

 

BlitzMax 1.50 • Lua 5.1 MaxGUI 1.41 • UU3D Pro • MessiahStudio Pro • Silo Pro

3D Coat • ShaderMap Pro • Hexagon 2 • Photoshop, Gimp & Paint.NET

 

LE 2.5/3.4 • Skyline UE4 • CE3 SDK • Unity 5 • Esenthel Engine 2.0

 

Marleys Ghost's YouTube Channel Marleys Ghost's Blog

 

"I used to be alive like you .... then I took an arrow to the head"

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...