Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Ayumi, AndrewAMD, howardR), 1,095 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
get Dinamic Skin File Name #422421
05/10/13 03:03
05/10/13 03:03
Joined: Nov 2007
Posts: 318
Brasil, Paraná
NeoNeper Offline OP
Senior Member
NeoNeper  Offline OP
Senior Member

Joined: Nov 2007
Posts: 318
Brasil, Paraná
Hello Brothers.
that way I can get the file name from SKIN of the Model?


Please! Use easy words to be translated. because my English is not very good! Grateful.
_______________________________________________________
Re: Get Dynamic Skin File Name [Re: NeoNeper] #422424
05/10/13 04:54
05/10/13 04:54
Joined: Nov 2006
Posts: 59
Alberta, Canada
Dveyee Offline
Junior Member
Dveyee  Offline
Junior Member

Joined: Nov 2006
Posts: 59
Alberta, Canada


Accelerated Game Creation Tutorial - Learn how to use 3D Gamestudio's WED with these exciting video tutorials!

Visit our website at http://www.accgames.com.
Re: Get Dynamic Skin File Name [Re: Dveyee] #422427
05/10/13 06:41
05/10/13 06:41
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
I think you cannot get the texture file name by ent_getskin only a BMAP*, but c_trace has a flag SCAN_TEXTURE to get texture name that you can read from the resulting hit struct:

hit.texname : char* pointer : name of the hit texture (skin1 or skin2) for models, blocks, or sprites. Terrain has no texture names.


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: Get Dynamic Skin File Name [Re: sivan] #422459
05/10/13 13:16
05/10/13 13:16
Joined: Nov 2007
Posts: 318
Brasil, Paraná
NeoNeper Offline OP
Senior Member
NeoNeper  Offline OP
Senior Member

Joined: Nov 2007
Posts: 318
Brasil, Paraná
Quote:

Try ent_getskin.

really the ent_getskin returns a bmap*. I Need FileName of the Bmap. Sample: "texture.tga"

Quote:

I think you cannot get the texture file name by ent_getskin only a BMAP*, but c_trace has a flag SCAN_TEXTURE to get texture name that you can read from the resulting hit struct:

hit.texname : char* pointer : name of the hit texture (skin1 or skin2) for models, blocks, or sprites. Terrain has no texture names.


I need for TERRAIN and Models, But I need a different method of the SCAN_TEXTURE.

I use multiple Terrains on the scene and for save the information from each of them I use the following method
Code:
for(you = ent_next(NULL); you; you = ent_next(you))
  { 
     if(ent_type(you) == 4) 
          {

           //Thi is terrain
           //....
          }
  }



this way I can get all the information i need of the all terrains and models in the scene, only do not know a way to get the name of the textures that are in the skins


Please! Use easy words to be translated. because my English is not very good! Grateful.
_______________________________________________________
Re: Get Dynamic Skin File Name [Re: NeoNeper] #422460
05/10/13 14:03
05/10/13 14:03
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
understood, it would be important for me too this, I'm planning to export graphic assets from my editor folders when a level is finally compiled as wmb, and then everything should be the same folder, but it is currently a real problem. probably the SDK provides a solution where external skin names can be got.


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: Get Dynamic Skin File Name [Re: sivan] #422465
05/10/13 15:57
05/10/13 15:57
Joined: Aug 2002
Posts: 3,258
Mainz
oliver2s Offline
Expert
oliver2s  Offline
Expert

Joined: Aug 2002
Posts: 3,258
Mainz
Originally Posted By: sivan
understood, it would be important for me too this, I'm planning to export graphic assets from my editor folders when a level is finally compiled as wmb, and then everything should be the same folder, but it is currently a real problem. probably the SDK provides a solution where external skin names can be got.


I'm planning the same thing. I also think the only solution is the SDK (where you can do this for sure).

Another (very bad) approach would be, to scan the model file for common image file strings (tga, bmp, dds, ...) via file_... instructions.

Re: Get Dynamic Skin File Name [Re: oliver2s] #422564
05/12/13 21:08
05/12/13 21:08
Joined: Nov 2007
Posts: 318
Brasil, Paraná
NeoNeper Offline OP
Senior Member
NeoNeper  Offline OP
Senior Member

Joined: Nov 2007
Posts: 318
Brasil, Paraná
I can create plugins using the SDK, but I know of no manual or some reference functions and variables that I can use!

If you have this knowledge and if they want to help me, I can create functions that will help us a lot in our future developments!


Please! Use easy words to be translated. because my English is not very good! Grateful.
_______________________________________________________
Re: Get Dynamic Skin File Name [Re: NeoNeper] #422565
05/12/13 21:41
05/12/13 21:41
Joined: Aug 2002
Posts: 3,258
Mainz
oliver2s Offline
Expert
oliver2s  Offline
Expert

Joined: Aug 2002
Posts: 3,258
Mainz
I've never seen a manual of the SDK, but it comes with some examples of I/O functions.


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1