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

ErhanK

Members
  • Content Count

    43
  • Joined

  • Last visited

Everything posted by ErhanK

  1. ErhanK

    Bone Lenght

    Thank you but none of those 3d assets are not made by me yet. I decompile and use them temporarily for speed prototyping. They coming from cry of fear, stalker and doom 3 (enemies not seen in video). My models are still under development but it will work fine. All of these motions are animated included iron sight. Btw i have to say something here. The rifle scope seen in white, it's actually rendered by scope camera to texture and it's works fine in engine but, when i'm publish the game it's doesn't work.
  2. ErhanK

    Bone Lenght

    It's very helpful thank you. I might be find way by this?
  3. ErhanK

    Bone Lenght

    I'm just trying to make automatic ragdoll but if a bone is just a point you right. it will doesn't make sense. I thought it might have a beginning and an end like in a blender.
  4. ErhanK

    Bone Lenght

    Ah i forgot to say something thank you I'm using this method but what about a single bone or an end-hierarchy bone?
  5. ErhanK

    Bone Lenght

    Hi. Is there any way to get a bone length in a model?
  6. What if i want to render extra 3rd person character mesh that is casts only own shadows and it's not visible by main FPS camera? How i can make it?
  7. ErhanK

    ifstream

    I'm trying to get it line by line with stop delimeter. I don't know if it exist in Stream class but simply i'm trying this.. ifstream myfile(filename); if(myfile.is_open()) { string item; string name; string type; while(!myfile.eof()) { getline(myfile,item,'|'); getline(myfile,name,'|'); while(getline(myfile,type,'|')) { cout<<type<<endl; } getline(myfile,type,'\n'); } myfile.close(); } Maybe i can do some extraction after stream->ReadLine()
  8. ErhanK

    ifstream

    Hi. When i'm add the fstream header to my project, i'm getting this error : 'EOF': undeclared identifier. It's happens only in leadwerk project. Why is it? I'm trying to parse a custom file like this code: entityDef weapon_shotgun { "weapon_name" "weapon_shotgun" "def_projectile" "projectile_bullet_shotgun" "ammoType" "ammo_shells" "ammoRequired" "1" "clipSize" "8" "mtr_flashShader" "muzzleflash" } so i can generate my entities from it.
  9. So i need this : if (PickInfo.entity->GetKeyValue("GameObjectType") == "NpcBase") { //NPC_Base is my custom actor NPC_Base* tmp = dynamic_cast<NPC_Base*>(PickInfo.entity->GetActor()); tmp->DoSomething(); } and thank you so much :)
  10. I want to call the custom function in a c++ class ... I have one more question. I don't know which is better. I've created a custom actor class. This class creates an entity within itself and attaches itself to it. Should I use this, or should I create an entity, also create a custom actor and then assign that actor to that entity? I gave an example below. //Header class EnemyBaseActor : public Actor { public: EnemyBaseActor(); }; //CPP EnemyBaseActor::EnemyBaseActor(){ this->entity = Model::Load("Models/Zombie.mdl"); this->entity->SetActor(this); } OR // In
  11. Hi. How can i call a custom function on my hitinfo entity? if (PickResult) { if (PickInfo.entity->GetClass() == Entity::ModelClass) { if (PickInfo.entity->GetKeyValue("GameObjectType") == "NpcBase") { //PickInfo.entity-> ?? ex. GetHurt() } } }
  12. Yes sure..thank you Smoke.zip BulletHit.cpp
  13. When the bullet I fired hits the wall, smoke comes out. Such a change in lights occurs throughout the lifetime of the smoke. Is this a bug or am I making a mistake? Here is my code { //initial codes up here //Smoke emitter smokeMaterial = Material::Load("Materials/Effects/smoke.mat"); hitEmitter[1] = Emitter::Create(); hitEmitter[1]->SetCollisionType(0); hitEmitter[1]->SetColor(1, 1, 1, 0.25); hitEmitter[1]->SetMaterial(smokeMaterial); hitEmitter[1]->SetEmissionVolume(0.05, 0.05, 0.05); hitEmitter[1]->SetVelocity(0.5, 0.5, 0.5, 1); hi
  14. ErhanK

    GetTexture()

    Yes "pickInfo.GetSurface()->GetMaterial()->GetTexture(0)->GetPath()" this is worked. thank yo but its causing some problems. i'll think another way
  15. ErhanK

    GetTexture()

    Yes.it's returning null but how can i achive this? Can we get this information from the surface of pickinfo?
  16. Hello there. I'm trying to get the texture path on pickinfo's surface. If I can get the path name, I'll specify the bullet impact effect from the postfix I added to the texture name (eg myTexture_wood or myTexture2_metal). But the nullptr value is returned. Here is my debug window. can anybody help?
  17. Is it correct to add the Baked lighting map from the blender cycles as an emission and diffuse shader to the leadwerks? I tried, but there's no decal on it. How would it be? Would it give such an image? Anybody try anything like that?
  18. This is my RTS project's mouse zoom code. I hope this c++ code can give you idea. float cameraDistance = 15.0f; float smoothness = 15.0f; float zoomRangeMin = 8.0f; float zoomRangeMax = 20.0f;; Vec3 playerCameraPos; Vec3 playerCameraNewPos; float scrollSpeedFPS; float mouseWheel; int getMouseWheelDirection() { int wheelReturn = 0; float mouseWheelPos = Window::GetCurrent()->GetMousePosition().z; if (mouseWheel != mouseWheelPos) { if (mouseWheelPos < mouseWheel) { wheelReturn = 2; //Wheel Down } else if (mouseWheelPos > mouseWheel) { wheelReturn = 1; //Wheel Up }
  19. The fbx version of your file is 6.0. It's failing. Can you try to export as version 7.4binary?
  20. Thanks. I love this feature too. I had to do it.?
×
×
  • Create New...