-
Posts
46 -
Joined
-
Last visited
Content Type
Blogs
Forums
Store
Gallery
Videos
Downloads
Everything posted by ScarPunk
-
Introducing new and awesome features!
ScarPunk commented on Phodex Games's blog entry in Phodex Games Blog
I sound like that will be cool when the skeleton die https://www.youtube.com/watch?v=lpqDphtOskU -
Introducing new and awesome features!
ScarPunk commented on Phodex Games's blog entry in Phodex Games Blog
Nice feature! I think i will make a game just for destroying things like tower pillars etc. https://www.youtube.com/watch?v=gBWijDQ-Nis https://www.youtube.com/watch?v=3TAoJyqaWAA -
Thanks for your quick reply ? I made an other blender project with an anim but same problem the model doesn't appear in the model editor
-
Hey today i am working on animation but nop ;( I made an animation on blender (without bones) of an zippo, in blender the animation works but when i import it into LeadWerks there is no animation! I read some topic about an i think the problem is bones. I tried to attach bones to my model (zippo) and import it into leadweks but my model disappear and there is no anim. Help me if you know how to fix that.
-
It works thanks SpiderPig
-
I tried both solutions without success but i find a fix ! I need to draw the keyvalue before drawing the line. This is good but i don't know why it's work ;( bool App::Loop() { //quit ? if (window->Closed() or window->KeyHit(Key::Escape))return false; Red->Move(); Green->Move(); Blue->Move(); world->Update(); if (window->KeyDown(Key::Right)) { camera->SetRotation(Vec3(camera->GetRotation().x, camera->GetRotation().y + 4, camera->GetRotation().z)); } //REFRESH STUFF Time::Update(); context->SetColor(0, 0, 0, 0); context->Clear(); world->Render(); //DRAW FPS context->SetBlendMode(Blend::Alpha); context->SetColor(255, 0, 0, 1); context->DrawText("FPS : " + String(Time::UPS()), 10, 20); //if hit DRAW KEY VALUE if (world->Pick(rayCastFirst, rayCastEnd, pickInfo, 0, true)) { //fail //context->SetBlendMode(Blend::Alpha); context->SetColor(1, 1, 1, 1); context->DrawText(pickInfo.entity->GetKeyValue("Color"), 20, 40); } //DRAW LINE context->SetBlendMode(Blend::Solid); context->SetColor((world->Pick(rayCastFirst, rayCastEnd, pickInfo) ? (rayCastColorOn) : (rayCastColorOff))); context->DrawLine(camera->Project(rayCastFirst).x, camera->Project(rayCastFirst).y, camera->Project(rayCastEnd).x, camera->Project(rayCastEnd).y); //set sphere to hit hitSphere->SetPosition((world->Pick(rayCastFirst, rayCastEnd, pickInfo,0,true)) ? (pickInfo.position) : (rayCastFirst) ); context->Sync(true); return true; }
-
I put the DrawText(Keyvalue) before drawing the line, it's work but i don't know why it's doesn't works after drawing a line ?♂️
-
Hello every one. Today i am working on raycast, and a wanted to draw key value of an entity, but unfortunately it's doesn't draw text ;( Here is a screenshot of the render: As you can see i am drawing first fps (who works) then draw the line and to finish draw keyvalue of the hit box (Fail) Here is my code: bool App::Loop() { //quit ? if (window->Closed() or window->KeyHit(Key::Escape))return false; Red->Move(); Green->Move(); Blue->Move(); world->Update(); if (window->KeyDown(Key::Right)) { camera->SetRotation(Vec3(camera->GetRotation().x, camera->GetRotation().y + 4, camera->GetRotation().z)); } //REFRESH STUFF Time::Update(); context->SetColor(0, 0, 0, 0); context->Clear(); world->Render(); //DRAW FPS context->SetBlendMode(Blend::Alpha); context->SetColor(255, 0, 0, 1); context->DrawText("FPS : " + String(Time::UPS()), 10, 20); //DRAW LINE context->SetBlendMode(Blend::Solid); context->SetColor((world->Pick(rayCastFirst, rayCastEnd, pickInfo) ? (rayCastColorOn) : (rayCastColorOff))); context->DrawLine(camera->Project(rayCastFirst).x, camera->Project(rayCastFirst).y, camera->Project(rayCastEnd).x, camera->Project(rayCastEnd).y); //set sphere to hit hitSphere->SetPosition((world->Pick(rayCastFirst, rayCastEnd, pickInfo,0,true)) ? (pickInfo.position) : (rayCastFirst) ); //if hit DRAW KEY VALUE if (world->Pick(rayCastFirst, rayCastEnd, pickInfo, 0, true)) { //fail context->SetColor(1, 1, 1, 1); context->SetBlendMode(Blend::Alpha); context->DrawText(pickInfo.entity->GetKeyValue("Color"), 20, 40); } context->Sync(true); return true; } Any reply will be appreciate ?
-
wrong app path from cpp and ok from leadwerks editor
ScarPunk replied to Charrua's topic in General Discussion
-
This is what YOUR feedback reveals!
ScarPunk commented on Phodex Games's blog entry in Phodex Games Blog
Walls are made of CSG or models ? -
I fix it you need to update visual studio (install windows SDK with visual studio installer) and click on project solution and retarget the solution
-
Hello, this is my first thread on this forum.? Today i am learning the c++ Official tutorial. But in this tutorial we need to launch our script you print hello world in c++ but it doesn't work, i have a bunch of errors (942) E1696. Any help will be appreciate ?