Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: How does one use Texconv.exe to convert an alpha texture to work in TV65/dx9?  (Read 1552 times)
Dimple
Community Member
*
Posts: 580


« on: April 22, 2010, 03:36:43 PM »

Hello,

I have not been able as yet to use Texconv.exe with the DirectX SDK command line prompt to convert SHP.bmp (Alpha texture works in 6.3 not in 6.5)to a texture that will work in DX9.

Texconv.exe uses the following command syntax:
texconv [-w number] [-h number] [-d number] [-m number] [-f format] [-if filter] [-mf filter] [-c color] [-srgbi] [-srgbo] [-px string] [-sx string] [-o directory] [-ft file-type] [-nologo] file-name

This is what I've tried...:
texconv [-w 128] [-h 128] [-d number] [-m number] [-f D3DXIFF_BMP] [-if filter] [-mf filter] [-c FFFE02A5] [-srgbi] [-srgbo] [-px string] [-sx string] [-o C:\Users\jwnorg\Downloads\TrueVision3D\Dimple\Experiment\Textures\2DAsteroids\SHP dx9\Converted to] [-ft bmp] [-nologo] SHP

IT didn't work, nor have I been able to find an example on line showing whats really needed.  Has anyone done this and knows how to do this?
Logged

Using VB.NET, TV3D 6.5, VISTA
~~~~~~~~~~~~~~~~~~~~~~~

"Know how to ask. There is nothing more difficult for some people, nor for others, easier."

- Baltasar Gracian
jviper
Community Member
*
Posts: 2130

Discipline in training


« Reply #1 on: April 22, 2010, 05:52:24 PM »

One thing I can tell for sure. First, you are using [ and ]. You don't need those. the arguments are seperated by spaces. Second, if an argument is optional and you don't need it, you don't have to specify it. I see you are using alot of arguments there. Just wanted to make sure you know you do not have to specify for every argument that is available. Only the ones you need for what you are trying to do. Also make sure that if you have path names with spaces in them, you should use quotations around them. Actually I think you can just put quotations around all the path names just to be safe, or if you are calling the command prompt from a program or something. Third, and I can't renember, but I think when you call the command prompt, your path names may have to be relative to where the cmd.exe is located. I renember somthing changed between XP and Vista, and due to security, the location of cmd.exe changed (if you are just doing a Run).
Well that's all I have so far on it. Hope some of this helped.
Logged

JAbstract.....Don't just imagine, make it happen!
pabloescobar
Customers
Community Member
*****
Posts: 150


WWW
« Reply #2 on: April 23, 2010, 06:01:20 AM »

If you use Photoshop, check this plugin http://developer.nvidia.com/object/photoshop_dds_plugins.html
You can save directly to DDS format.

If you dont use Photoshop, always can try GIMP (free solution), and have DDS plugin for it:
http://registry.gimp.org/node/70

Logged

-----------------------------
http://www.cristianocouto.com.br
Dimple
Community Member
*
Posts: 580


« Reply #3 on: April 23, 2010, 02:49:45 PM »

I'm still having problems, this is what I got on the most recent try.

Microsoft Windows [Version 6.0.6002]
Copyright (c) 2006 Microsoft Corporation.  All rights reserved.

C:\Windows\system32>texconv -w 128 -h 128 -f BMP -ft bmp -c FFFE02A5 -o "C:\User
s\jwnorg\Downloads\TrueVision3D\Dimple\Experiment\Textures\2DAsteroids\SHP dx9\C
onverted to\" -name SHP
'texconv' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>

Also, how does one specify the location of the file to be converted. The one thing there about file (-o) is for output right? Or do these ([-px string] [-sx string]) have something to do with the location of the file?

« Last Edit: April 23, 2010, 02:54:56 PM by Dimple » Logged

Using VB.NET, TV3D 6.5, VISTA
~~~~~~~~~~~~~~~~~~~~~~~

"Know how to ask. There is nothing more difficult for some people, nor for others, easier."

- Baltasar Gracian
pabloescobar
Customers
Community Member
*****
Posts: 150


WWW
« Reply #4 on: April 23, 2010, 03:51:17 PM »

specify the location of texconv.exe

c:\dxsdk\bin\texconv -w 128 -h 128 -f BMP -ft bmp -c FFFE02A5 -o "C:\User
s\jwnorg\Downloads\TrueVision3D\Dimple\Experiment\Textures\2DAsteroids\SHP dx9\C
onverted to\" -name SHP

assuming texconv.exe is located in "c:\dxsdk\bin\"
Logged

-----------------------------
http://www.cristianocouto.com.br
Dimple
Community Member
*
Posts: 580


« Reply #5 on: April 24, 2010, 02:28:08 PM »

Well after almost 4 days of trying to get texconv to work. I guess I'll have to try another approach to getting a usable alpha texture. By recreating/making a new replacement (I hope.) for the texture that isn't showing an invisible background in TV6.5, in photoshop that is. I haven't made anything with layers yet, so wish me luck...

Thanks to everyone who gave more things for me to try!

« Last Edit: April 24, 2010, 02:43:13 PM by Dimple » Logged

Using VB.NET, TV3D 6.5, VISTA
~~~~~~~~~~~~~~~~~~~~~~~

"Know how to ask. There is nothing more difficult for some people, nor for others, easier."

- Baltasar Gracian
frank7723
Community Member
*
Posts: 5


« Reply #6 on: August 25, 2011, 09:36:40 PM »

Have you checked to make sure that you have the most recent drivers? It might be your security credentials, but I would try the driver first. Sometimes having an outdated driver can cause all kinds of problems. Go to their website and see if this helps.
« Last Edit: August 31, 2011, 02:58:57 PM by frank7723 » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks