Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: Shader is not drawn  (Read 1198 times)
DarkKnight
Community Member
*
Posts: 14

Russian mafia ;-D


WWW
« on: February 02, 2008, 12:37:52 PM »

Hi.I'm create box,load shader,but box + shader not drawen!=( if shader don't use,then all it's ok.
I recently have started to learn TV3D, prompt plz that I have made not correctly.

log:

02-02-2008 16:35:50 | DEVICE INFO : Vertex Shaders 3.0 supported in hardware.
02-02-2008 16:35:50 | Debug info : vs fffe0300  ps ffff0300
02-02-2008 16:35:50 | DEVICE INFO : Pixel Shaders 3.0 supported in hardware.


OS: Vista

Link:
http://rapidshare.de/files/38472826/shader.rar.html
Logged

Yes,i know english very bad=|


Lyrical
Customers
Community Member
*****
Posts: 460


WWW
« Reply #1 on: February 02, 2008, 08:24:01 PM »

The link doesn't seam to work, it takes you to an upload page, not to download the rar file.

If you have just started with TV3D i would suggest doing something other
than shaders, these are quite difficult, i myself feel i'm only just ready to learn
this part of this great system.

Not all shaders will work instantly they all need a little work. however there is quite
alot of help for them.

Can you post your shader and we will take a look. Not myself as i'm just learning, but someone with more experience will be able to help. I will gladly take a look myself but i
can't debug shaders that well yet, i will give it a try though for good practice.

Have a look on the Truevision3D wiki site at Zaks shader tutorial it is the best place to start. I have also lernt from this site to create the demo at Page 5 of that tutorial.

Hope you enjoy Truevision as much as we do.

Logged
DarkKnight
Community Member
*
Posts: 14

Russian mafia ;-D


WWW
« Reply #2 on: February 03, 2008, 02:29:46 AM »

No,i little know shaders,this shader worked at other engine.And shader in the TV3D samples don't worked too.

New link:
http://rdg.do.am/shader.rar

I,m checked,that link(rapidshare) too work.

shaders turtorials:
(rus) http://www.gamedev.ru/articles/?id=10109   

eng:
http://www.shadertech.com/
http://www.gamedev.net/reference/articles/article1496.asp
http://www.gamedev.net
« Last Edit: February 03, 2008, 02:42:41 AM by DarkKnight » Logged

Yes,i know english very bad=|


Lyrical
Customers
Community Member
*****
Posts: 460


WWW
« Reply #3 on: February 03, 2008, 06:05:44 AM »

Thanks,

 I have had a look at your .fx files from the project and they
all work fine with my shader demo. so the problem lies somewhere
else either the code that creates the shader the mesh you are using
or maybe the graphics card. le me know which graphics card you got please.

I am unable to open your VC++ project.
Which development environment do you use? VS2005/8,VC++, etc

Let me know and i will check the code for you.

« Last Edit: February 03, 2008, 06:16:42 AM by Lyrical » Logged
DarkKnight
Community Member
*
Posts: 14

Russian mafia ;-D


WWW
« Reply #4 on: February 03, 2008, 12:17:10 PM »

I'm looked shader sample,but him on C# =(
I use VS Express 2008 C++

graphics card?then it is bug?at me latest drivers.maybe because of win vista?
Logged

Yes,i know english very bad=|


Lyrical
Customers
Community Member
*****
Posts: 460


WWW
« Reply #5 on: February 03, 2008, 12:42:11 PM »

Hi,
 I will download VS2008 express and see what i can do for you.

i can't say definatly its your graphics card as i don't know the specs
if you look on the web for your card and make sure it takes vertex and pixel shaders
version 1,2 or even 3 you should be fine

leave it with me i will let you know how i get on.
Logged
Lyrical
Customers
Community Member
*****
Posts: 460


WWW
« Reply #6 on: February 03, 2008, 02:19:03 PM »

Hi Darknight,

 i have installed VC2008 express and the project load correctly, however,
the project seams to be missing the file "Template.rc" as this is being report missing by the compiler.

I will look through the code anyway to see if i can see anything but would be nice if you could see if you have this file as post a link.

Thanks
Logged
DarkKnight
Community Member
*
Posts: 14

Russian mafia ;-D


WWW
« Reply #7 on: February 04, 2008, 03:01:58 AM »

Hm.at me project compile without Template.rc.

You can write shader example on C++?

full version,with template.rc,log,exe:
http://rdg.do.am/f_u_l_l.rar
Logged

Yes,i know english very bad=|


Lyrical
Customers
Community Member
*****
Posts: 460


WWW
« Reply #8 on: February 04, 2008, 05:40:44 AM »

Hi,
   I have fixed the problem for you.

The main problem was the paths to the FX file.

I have updated 3 line for you and i have marked them with //Lyrical so you can quickly find them.

strcpy actually adds the additional paths together recreating the variable.

Code:
AppPath(path,srchpath);

this produced a string of

"c:\Documents and Settings\Lyrical\Desktop\f_u_l_l\Debug\"

when you use this
Code:
pTV->SetDebugFile(strcat(srchpath, "\\debugfile.txt"));

you actually end up with srchpath being

"c:\Documents and Settings\Lyrical\Desktop\f_u_l_l\Debug\\debugfile.txt"

when you came to use this file with the shader the path to the shader became
"c:\Documents and Settings\Lyrical\Desktop\f_u_l_l\Debug\\debugfile.txt\\FX\First.fx"

also the strcpy function made srchpath also point to this path.

NOTE:
You will need to move the FX folder into the DEBUG folder should you wish to use your version of this code.

I have added the full working source here for you

www.fastrightstudios.co.uk\tv3d\f_u_l_l.rar

Glad to help

Enjoy Truevision




Logged
DarkKnight
Community Member
*
Posts: 14

Russian mafia ;-D


WWW
« Reply #9 on: February 04, 2008, 06:04:53 AM »

Thanks =)
Logged

Yes,i know english very bad=|


Pages: [1]
  Print  
 
Jump to:  

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