• entries
    743
  • comments
    1924
  • views
    578651

Fish

Sign in to follow this  
Aardvajk

152 views

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.
Sign in to follow this  


10 Comments


Recommended Comments

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.

Share this comment


Link to comment
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.

Share this comment


Link to comment
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.

Share this comment


Link to comment
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.

Share this comment


Link to comment
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.

Share this comment


Link to comment
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]

Share this comment


Link to comment
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.

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now