![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
![]() |
#16 |
The Old Man
![]() Join Date: Mar 2010
Location: U.S.A.-East Coast
Posts: 1,587
Downloads: 86
Uploads: 4
|
![]()
Nice work TDW. Now you should replace all the different icon .dds files with the same one.
__________________
![]() He sank 198,650 tons....who you ask?....Erich Topp, that's who! |
![]() |
![]() |
![]() |
#17 |
Black Magic
![]() |
![]() |
![]() |
![]() |
![]() |
#18 |
Pacific Aces Dev Team
![]() |
![]()
Objects on the map like ship icons, location names, mission areas etc. are shapes (one or more 2D models in a *.shp file).
A shape file can include a texture or not. If it has a texture, the texture colors are rendered by a pixel shader on the 2D shape model. a simple SH5 shape file: Code:
1 arrowbody.dds 4 0.0 0.954569 0.0 -16.3476 1.51965 0.0 -16.3476 -1.51577 0.0 0.0 -0.951302 0.0 0.9995 0.813524 0.5 0.082804 0.999501 0.5 0.0828592 0.000499517 0.5 0.9995 0.186274 0.5 2 0 1 2 0 2 3 line 2: texture name line 3: 4 = vertex count line 4-7: vertices for object line 8-11: vertices for texture coordinates line 12: 2 = triangle count line 13-14: Indices of vertices forming a triangle
__________________
-- Vapor-ware is always easier to sell because there's no limit what it can do! |
![]() |
![]() |
![]() |
#19 | |
sim2reality
![]() Join Date: Jun 2007
Location: AM 82
Posts: 2,280
Downloads: 258
Uploads: 30
|
![]() Quote:
Look forward to your shape program. I tried following your shape tutorial from before with no luck. ![]() |
|
![]() |
![]() |
![]() |
#20 |
Black Magic
![]() |
![]()
even without a texture the color for it is rendered with the color value passed to the pixel shader. I edited the pixel shader used for 2D map shapes and overrode that color value passed and used black to make all the contacts one color (0,0,0, colorpassed alpha)
|
![]() |
![]() |
![]() |
#21 |
Pacific Aces Dev Team
![]() |
![]()
It takes some little time because the shape program contains currently some dll's which I did for one of my clients and I can not release them (licensing reasons). I created the shape viewer quickly with these dll's because I needed a tool to effectively convert many of the map location names to an editable format. Now I just have to remove the customer-specific functions from the dll's.
__________________
-- Vapor-ware is always easier to sell because there's no limit what it can do! |
![]() |
![]() |
![]() |
|
|