Xonotic Forums
How to import Weapon Models? - Printable Version

+- Xonotic Forums (https://forums.xonotic.org)
+-- Forum: Creating & Contributing (https://forums.xonotic.org/forumdisplay.php?fid=10)
+--- Forum: Xonotic - Editing and Concept Art (https://forums.xonotic.org/forumdisplay.php?fid=11)
+--- Thread: How to import Weapon Models? (/showthread.php?tid=8489)



How to import Weapon Models? - NoClue - 12-19-2020

Hello,

I wanted try some modeling on some of the weapon models. However  i have no clue how to open them in Blender. I used all kind of import addons but none seem to really work.
Anyone has some links to the stuff that is needed to be able to work on these models?


RE: How to import Weapon Models? - Julius - 12-20-2020

Source files are here:
https://gitlab.com/xonotic/mediasource

And I have found this searching in Google:

About SMD format:
https://developer.valvesoftware.com/wiki/Studiomdl_Data

Import/Export SMD for Blender:
http://steamreview.org/BlenderSourceTools/

Wink


RE: How to import Weapon Models? - NoClue - 12-20-2020

Thank you but i think this is just some random branch isn't it? If you look in the models/weapons folder there it's almost empty.
To make more clear what i'm tryting to do. Check out that screenshot:
[Image: Quake-Champions-Beta-Shot-(8).jpg]
As you can see the Nailgun in Quake is "blue" before pickup. That makes it nice to distinct from other weapons. I had some talk with a friend of mine yesterday and he has problems knowing what weapon he picked up. Since i also had that issue when being new i tought it would be an good idea to implement that to xonotic. I know that there are simple items but i think that's just much cooler.

That is why i either look for the textures to edit for each gun or the models (if needed) to get "onecolored" guns. However i checked all kind (extracted the data.pk3) of files and don't seem to find where the textures for each weapon are actually saved. I greatly appreciate any input on that or even advice how to accomplish what i'm trying to do.
I'm kinda worried that editing the files would lead to have a colored gun when equipped as well and that isn't what i want. Maybe i can replace the simple items with my idea?
However first i need to know where i can find the files that i need to edit then i can start with experiments on this. Big Grin


RE: How to import Weapon Models? - Julius - 12-22-2020

https://gitlab.com/xonotic/mediasource/-/tree/master/models/weapons

[Image: yR8dfGV.png]

It is not empty for me, there are a lot of files.


RE: How to import Weapon Models? - Julius - 12-22-2020

Also, all the files included with Xonotic are here: https://gitlab.com/xonotic

Models & textures are specifically in https://gitlab.com/xonotic/xonotic-data.pk3dir

  - Models -and some textures- are in xonotic-data.pk3dir/models/
  - Textures  are in xonotic-data-.pk3dir/textures/ and xonotic-data-.pk3dir/textures/weapons


It is very easy to clone the repo from your terminal. For example, I will do this to clone it in my /opt directory:


Code:
$ cd /opt
$ git clone https://gitlab.com/xonotic/xonotic-data.pk3dir.git xonotic-data
$ rm -rf ./xonotic-data/.git
$ tar cvzf xonotic-data.tar.gz xonotic-data



RE: How to import Weapon Models? - Freddy - 12-23-2020

(12-22-2020, 05:44 PM)Julius Wrote: Also, all the files included with Xonotic are here: https://gitlab.com/xonotic

Models & textures are specifically in https://gitlab.com/xonotic/xonotic-data.pk3dir

  - Models -and some textures- are in xonotic-data.pk3dir/models/
  - Textures  are in xonotic-data-.pk3dir/textures/ and xonotic-data-.pk3dir/textures/weapons


It is very easy to clone the repo from your terminal. For example, I will do this to clone it in my /opt directory:


Code:
$ cd /opt
$ git clone https://gitlab.com/xonotic/xonotic-data.pk3dir.git xonotic-data
$ rm -rf ./xonotic-data/.git
$ tar cvzf xonotic-data.tar.gz xonotic-data

If you remove the .git folder anyways, you can also just use the download button on gitlab (next to "clone") or use this link: https://gitlab.com/xonotic/xonotic-data.pk3dir/-/archive/master/xonotic-data.pk3dir-master.tar.gz
This way you will save a lot of download bandwidth (both for you and gitlab)


RE: How to import Weapon Models? - Julius - 12-23-2020

ah, many thanks Wink