Jump to content

Need some tests here (Decals Issue)


franck22000
 Share

Recommended Posts

So today i made a bug report about the decals here: http://www.leadwerks.com/werkspace/tracker/issue-188-decals-issue/

 

Here is a demo, so you can test and reproduce the problem, please post your remarks in this post so it can maybe help Josh to solve this issue, thanks ! :D

 

I

 

WSAD keys and mouse to move camera

 

Left Mouse Button to add a decal toward the camera direction

 

Then you can add some decals, and move the camera very close to the decals and see the hudge fps drop :)

If you have some Dll erros you may need this: http://www.microsoft.com/downloads/fr-fr/details.aspx?FamilyID=bd512d9e-43c8-4655-81bf-9350143d5867

 

Here is the code that i am using:

 

if(MouseDown(1))
{

TCamera _Camera = CRenderer::getInstance()->getMainCamera();

	TPick _Picked;

	CameraPick( &_Picked, _Camera, Vec3(GraphicsWidth() / 2, GraphicsHeight() / 2, 100), 0);

	TMesh _Decal = CreateDecal(_Picked.surface, TFormPoint(Vec3(_Picked.X, _Picked.Y, _Picked.Z), NULL, _Picked.entity), 0.020f);

	EntityParent(_Decal , _Picked.entity, 0);
	PaintEntity(_Decal , LoadMaterial("abstract::bullethole.mat"));
	UpdateMesh(_Decal);
	AddMesh(_Decal , _Picked.entity);

}

You guys are going to be the death of me. Josh
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...