Fish

Published August 06, 2007
Advertisement
Support for multiple textures, and a polygon painting tool mode now implemented:



File IO in terms of getting paths to open and save files is going to be a bit of a problem, since there is no way I'm writing a D3D OpenFileDialog. Not too sure what to do there, so suggestions welcome.
0 likes 10 comments

Comments

diablo_tk
OMG Super Giant Plasma Space Fish... How did you know?

Oh, and what technique are you using for calculating UVs? I wanna know if my guess was right.
August 06, 2007 12:09 PM
mattdev
Very cool fish :)

I imagine he's just using the vertex coordinates (scaled) for UV's.
August 06, 2007 01:04 PM
Scet
Why not just make it a windowed app and use the standard file dialog?
August 06, 2007 01:09 PM
diablo_tk
Quote:Original post by mattdev
Very cool fish :)

I imagine he's just using the vertex coordinates (scaled) for UV's.


yea thats what I thought but I wanted to here it from the fishes mouth.
August 06, 2007 01:13 PM
Aardvajk
Quote:Original post by diablo_tk
OMG Super Giant Plasma Space Fish... How did you know?

Oh, and what technique are you using for calculating UVs? I wanna know if my guess was right.


You and mattdev are right. HopeDagger suggested the method.
August 06, 2007 03:54 PM
Aardvajk
Quote:Original post by Scet
Why not just make it a windowed app and use the standard file dialog?


I hadn't thought of that. So if I run a D3D application as windowed, is it safe to call GetOpenFileName() etc?

[EDIT] Yes, it is, but the main application window goes black until you close the dialog, plus running this application as windowed makes it a bit sluggish.

Maybe I'll just give in and write a D3D file dialog. dgreen did one for his GangWars recently, although I seem to remember he invested a serious number of hours in it. Mine doesn't have to be as pretty though.

Cheers for the suggestion anyway Scet.
August 06, 2007 03:54 PM
Ravuya
Damn, that does look good.

Me wanty.
August 06, 2007 04:59 PM
benryves
Swim swim hungry, swim swim hungry. Great fish!

I've seen a number of apps that use the standard file open dialogs full-screen, but I have a hunch that they were DirectDraw based, not Direct3D.
August 07, 2007 04:57 AM
HopeDagger
I opted for the (ugly) method of simple querying the user for a filename, and having it automatically save to the relative "/Maps" directory. Not horribly flexible or extensible, but it saved me several hours of writing a file-browsing/selecting dialog system. [grin]
August 07, 2007 08:36 AM
Aardvajk
Actually I might just implement tab filename completion to my little console, like the linux C shell works (or kind of like the Windows command prompt has worked since XP for that matter).

Thank you all for your kind praise for my fish.
August 07, 2007 02:07 PM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement
Advertisement