Search found 8 matches

by FvEldijk
Sat Sep 25, 2004 4:14 pm
Forum: Game Programming
Topic: Texture mapping
Replies: 3
Views: 1919

Ok,
but I 've red somewhere that you need to define 4 sets of coords per triangle - is this true? Or is your point that I only need to define one set per vertex?
by FvEldijk
Sat Sep 25, 2004 3:21 pm
Forum: Game Programming
Topic: Texture mapping
Replies: 3
Views: 1919

Texture mapping

Can anyone help me with texture mapping?

Do I understand it correctly that:
- you need to define new UV-coords for every triangle?
(which does not sound entirely stange to me)
- you need to define 4 sets of coordinates per triangle?
(Why is that? Why not just three)

So if I have four triangles ...
by FvEldijk
Thu Sep 23, 2004 6:09 am
Forum: Game Programming
Topic: 3D Ball
Replies: 2
Views: 1888

Thanks, but I realy wanted to create a ball-mesh - and especially the texture mapping won't work...

InitKeyboard()
InitEngine3D()
InitSprite()

#HEAD_L = 12 ;
#HEAD_B = 12 ; schijven in de bol
#HEAD_VERT=#HEAD_L*#HEAD_B
#HEAD_FACES=#HEAD_L*(#HEAD_B-1)*2


Procedure create_head()

Dim ...
by FvEldijk
Tue Sep 21, 2004 6:21 am
Forum: Game Programming
Topic: 3D Ball
Replies: 2
Views: 1888

3D Ball

Does anyone have some code to create a 3D ball out of triangles?

If possible: Complete with normals and UV coords to map one image on it...

Thanks
by FvEldijk
Sun Sep 05, 2004 1:18 pm
Forum: Coding Questions
Topic: Image not displayed
Replies: 8
Views: 1843

Ok!

Has it something to do with images being GDI stuff and sprites not? StartDrawing does a lock or something?

This purebasic is not at all easy...
by FvEldijk
Sun Sep 05, 2004 1:00 pm
Forum: Coding Questions
Topic: Image not displayed
Replies: 8
Views: 1843

Ok... I think I understand the basics of image-drawing...

Now sprites bug me, here is the same example, now with a sprite:
InitKeyboard()
InitSprite()

OpenScreen(640,480,32,"")

test=LoadSprite(#PB_Any,"test.bmp")

Repeat
ExamineKeyboard()

StartDrawing(ScreenOutput())
DisplaySprite ...
by FvEldijk
Sun Sep 05, 2004 11:42 am
Forum: Coding Questions
Topic: Image not displayed
Replies: 8
Views: 1843

If I understand corractly it was mainly the useimage() that does the trick here, am I right?
by FvEldijk
Sun Sep 05, 2004 10:55 am
Forum: Coding Questions
Topic: Image not displayed
Replies: 8
Views: 1843

Image not displayed

Somehow I don't get this image displayed:

InitKeyboard()
InitSprite()

OpenScreen(640,480,32,"")

test=LoadImage(#PB_Any,"test.bmp")
FlipBuffers()
StartDrawing(ScreenOutput())
DrawImage(test,0,0)
DrawText("This was a test")
StopDrawing()
FlipBuffers()

Repeat
ExamineKeyboard()
Until ...