-
Posts
11 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by נσναnz
-
-
Hey,i was wondering if there is a way to hide a specific property or object in metin2?
I see that there is some systems that hides all the trees or objects, but what about a specific one only, maybe by CRC or the actual file name?
Thanks ! -
4 hours ago, Finnael said:
It is not really that hard to do actually. Inside CRenderTarget.cpp there is a function called RenderModel. And inside that function there is this call:
camera_manager.GetCurrentCamera()->SetViewParams( D3DXVECTOR3{ 0.0f, -1500.0f, 600.0f }, D3DXVECTOR3{ 0.0f, 0.0f, 95.0f }, D3DXVECTOR3{0.0f, 0.0f, 1.0f} );
The first parameter here is the position of our camera that looks at the target. Second paremeter is the position of our target. The third parameter here is not important for us. (Though it should be always D3DXVECTOR3{0.0f, 0.0f, 1.0f} otherwise we might get weird errors.)
So if you want to zoom out you need to either change the position of the camera or the target. What can you do is have a member variable inside CRenderTarget class. Something like this :
D3DXVECTOR3 m_cameraPosition;
Initialize this variable inside CRenderTarget constructor like this:
m_cameraPosition = D3DXVECTOR3{ 0.0f, -1500.0f, 600.0f };
And change the above code to this:
camera_manager.GetCurrentCamera()->SetViewParams( m_cameraPosition, D3DXVECTOR3{ 0.0f, 0.0f, 95.0f }, D3DXVECTOR3{0.0f, 0.0f, 1.0f} );
Now when you change the m_cameraPosition to whatever value you want the camera position will be changed instantly.
You know i actually did not think this through, Thanks for the idea
I managed to do it but also bind it to the model index. So that i can get the best camera for each monster.
Thanks again
-
4 hours ago, Finnael said:
You mean like zooming or rotating the object?
Yes exactly, Some monsters are large and you need a zoom out to make a good preview. Rotating i think the preview model is rotating by itself so it's not that necessary..
-
Thanks for the system.
Is there a way to manipulate the camera perspective maybe? Some monsters are too big for the camera position.. -
On 5/12/2019 at 4:47 PM, VegaS™ said:
Your children item from dictionary is a tuple, not a list.
#1.1) Replace: window["children"][0]["children"] = window["children"][0]["children"] + [ #1.2) With: window["children"][0]["children"] += ( #2.1) Replace: },] #2.2) With: },)
Discontinued ?
It was a nice idea tbh !- 1
-
Hi, the system works perfectly.
But a small issue is that some big mounts/monsters wont be displayed properly.(check the pic)https://metin2.download/picture/XL44lqQQ6xE0OLRWuEkLfyg5r5K8xlm1/.png
I tried changing in the perspective camera but that's also affecting normal renders (armors/weapons...) by getting smaller so that's not a good fix.Is there any fix for that?
- 4
-
21 minutes ago, נσναnz said:
Oh i kinda did a part of this , i am running the game using the txt files atm.. but how do i mirror them to the database?
Solved ! thanks man !
-
28 minutes ago, LordZiege said:
Use Mirror to database in database source and load item_proto and mob_proto as txt, mirror to database and ure done
Oh i kinda did a part of this , i am running the game using the txt files atm.. but how do i mirror them to the database?
-
Hey guys,
I've been working on some files a while back, been using txt files.
tried to get back to my files recently, but i discovered that my sql item_proto and mob_proto are messed up somehow and are not that same as the txt,
I used to work on sql and generate the txt out from it.
Is there anyway to generate an sql item_proto from the txt files that i have ? been trying hard but tbh i don't know how to work on txt files directly..thanks !
Hiding a specific object
in Community Support - Questions & Answers
Posted
Thank you man !! It worked