Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - nawitus

Pages: [1] 2
1
General chat / Re: It's been 10 years!
« on: February 12, 2011 »
Time flies, eh. 5 year mark for me, even though it feels just like yesterday when I registered :). It's also interesting to look back how I was totally different person 5 years ago. I've never been that active on this forum, but it has still provided me with lots of lessons. Funny to think that I'm at this moment relearning stuff I learned here in a university course. We're learning how to fill up a polygon or how to calculate projections and stuff.

Lets see if we will have a 20 years anniversity :).

2
C / C++ /C# / Re: [C++] attempt at opengl using C++.
« on: February 27, 2010 »
I'm not actually sure what the question is, but I simply used SDL and OpenGL. SDL provides some input functions and other helping stuff.

3
General chat / Re: We Are Back!
« on: September 06, 2009 »
Great work!

4
Are you guys using a broken OS? My OS is not broken so it doesn't need slower programs like antivirus. I've been connected to the net for years and 0 virus so far. Oh, I use a linux based OS.

5
General chat / Re: DirectX 11
« on: March 19, 2009 »
One thing to note is that Windows XP works with DX10, but it was artifically restricted so that people would have to "downgrade" to crappy Vista. Also, DirectX is Microsoft only so it's a crap solution.

6
C / C++ /C# / Re: Console window on Linux/C++
« on: February 02, 2009 »
It's fixed now. Turns out an update to Geany breaks building projects, described here:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=479795

7
C / C++ /C# / Console window on Linux/C++
« on: February 02, 2009 »
Hi', I'm coding an OpenGL library using C++ in Ubuntu 8.10 and using the Geany IDE 0.14. If I run the program for terminal for example, cout is not printing anything to there.. I really need a console window to debug some stuff like FPS information while I'm running the program.

My compile argument is: (not sure if this is relevant..)
g++ -Wall -c "%f" -lSDL `sdl-config –cflags –libs` -lSDL_ttf -lSDL_gfx -lSDL_mixer -lGL -lGLU -lGLEW


8
Thanks, I'll look into that tomorrow. I'm on my first year at uni, and I *should* know that math.

edit: I used the point sprite extension, which saved me from all the math (and is faster).  :clap:

9
General coding questions / Point a quad towards camera
« on: December 30, 2007 »
I have the camera at CamX,CamY and CamZ, and I need to calculate QX1,QY1,QZ1,QX2,QY2,QZ2,QX3,QY3,QZ3,QX4,QY4 and QZ1 for the quad at position QuadX,QuadY,QuadZ. The quad coordinates must be calculated so that the quad is facing the camera..

Any help or links? I'm not fan of 3D/trig math  :-\

10
Draw 90 degrees of the circle and then just mirror it.

11
Projects / stuntmoto
« on: December 25, 2007 »
I don't think anyone remembers me on this board, but I've released a motorcycle stunt game (made in Blitz3D).
You can look at screenshots and download from this url:
http://metalli-fi.net/stuntmoto/

12
General chat / Re: Spammers..
« on: November 27, 2006 »
Quote
Can't we have one of those text in images things you have to type in to stop automated sign-ups. I know the things are damn annoying, but they do work.
They're called CAPTCHAs.
http://en.wikipedia.org/wiki/Captcha
Good idea.

Regarding whether the spammers make money spamming sites like this, sadly the answer is yes, they do.  Some idiots go for that kind of thing.  If someone sends 10million spam emails, even if 0.0001% of the people (1 in a million) answer it and pay money, then it's probably cost effective.  I'm pretty sure at least 0.0001% of the people *I* know are fuckwits.

Jim


They are too annoying. Atleast require them only when you are posting a link.

13
Useful links / Re: Youtube gems
« on: November 27, 2006 »

14
Challenges & Competitions / Re: Math Image Challenge..
« on: November 19, 2006 »
I made this a while ago, don't really care about the competition though.

http://i10.tinypic.com/3zum2o5.png

17
General chat / Re: Can't stay logged in
« on: October 21, 2006 »
Nope. But it's not a big problem luckily

18
General chat / Can't stay logged in
« on: October 19, 2006 »
I have to log in everytime I visit this forum, and I do use the flag "stay in forever". I'm using Firefox 1.5 and I'm staying logged in on any other site.

19
General chat / Re: Computer
« on: October 18, 2006 »
I have 2 PSU's, becose I'm lee7

20
Blitz / Logic machine (Blitzmax)[BMAX]
« on: October 18, 2006 »
This code prints this logical information:

Quote
color is property.
color is not taste.
green is color.
green is not blue.
green is not red.
blue is color.
blue is not red.
red is color.
taste is property.

Code: [Select]
Strict

Information.InfoList = CreateList()
Type Information
Global InfoList:TList
Field Info$
Field Word1$,Word2$,Word3$

Function Add(NewInfo$,NewWord1$,NewWord2$,NewWord3$)
Local DontAdd=0,In:Information
For In:Information = EachIn InfoList
If In.Info$ = NewInfo$ Then
DontAdd=1
Exit
EndIf
If NewWord2$=In.Word2$ Then
If (NewWord1$ = In.Word3$) And (In.Word1$ = NewWord3$) Then
DontAdd=1
Exit
EndIf
EndIf
Next
If DontAdd = 0 Then
In:Information = New Information
In.Info$ = NewInfo$
In.Word1$ = NewWord1$
In.Word2$ = NewWord2$
In.Word3$ = NewWord3$
EndIf
End Function

Function DeleteAll()
ClearList(InfoList)
End Function

Function PrintAll()
For Local In:Information = EachIn InfoList
Print In.Info$
Next
DeleteAll()
InformationWord.DeleteAll()
End Function

Method New()
InfoList.AddLast Self
End Method
End Type

InformationWord.InfoListWord = CreateList()
Type InformationWord
Global InfoListWord:TList
Field InfoWord$

Function AddWord(NewInfo$)
Local DontAdd=0,In:InformationWord
For In:InformationWord = EachIn InfoListWord
If In.InfoWord$ = NewInfo$ Then
DontAdd=1
Exit
EndIf
Next
If DontAdd = 0 Then
In:InformationWord = New InformationWord
In.InfoWord$ = NewInfo$
EndIf
End Function

Function DeleteAll()
ClearList(InfoListWord)
End Function

Function PrintAll()
For Local In:InformationWord = EachIn InfoListWord
Print In.InfoWord$
Next
DeleteAll()
End Function

Method New()
InfoListWord.AddLast Self
End Method
End Type


Word.WordList = CreateList()
Type Word
Global WordList:TList
Field Name$
Field LinkList:TList

Method AddWordLink(Word2$,AddParent)
Local l:Link = New Link
l.Parent = AddParent
l.LinkTo = GetWord:Word(Word2$)
LinkList.AddLast l
End Method

Method New()
WordList.AddLast Self
LinkList = CreateList()
End Method
End Type

Type Link
Field Parent
Field LinkTo:Word
End Type




Function AddLink(Word1$,Word2$)
Local w1:Word = GetWord(Word1$)
Local w2:Word = GetWord(Word2$)

w1.AddWordLink(Word2$,1)
w2.AddWordLink(Word1$,0)


End Function

Function GetWord:Word(Word1$)
Local w:Word
For w:Word = EachIn Word.WordList
If Word1$ = w.Name$ Then Return w
Next
w:Word = New Word
w.Name$ = Word1$
Return w
End Function

Function PrintWords()
Local w:Word,l:Link
For w = EachIn Word.WordList
Print " "
Print w.Name$
For l = EachIn w.LinkList
If l.Parent Then
Print w.Name$ + "->" + l.LinkTo.Name$
EndIf
Next
Next
End Function

Function PrintInformation(Word1$)
Local w:Word = GetWord:Word(Word1$),l:Link,l2:Link

For l = EachIn w.LinkList
If l.Parent Then
Information.Add l.LinkTo.Name$ + " is " + w.Name$ + ".",l.LinkTo.Name$,"is",w.Name$
If ParentCount(l.LinkTo.Name$) > 1 Then
For l2 = EachIn GetWord(l.LinkTo.Name$).LinkList
If Not l2.Parent Then
If l2.LinkTo.Name$ <> w.Name$ Then
Information.Add w.Name$ + " is not " + l2.LinkTo.Name$ + ".",w.Name$,"is not",l2.LinkTo.Name$
EndIf
EndIf
Next
EndIf
If NotAdded(l.LinkTo.Name$) Then
InformationWord.AddWord l.LinkTo.Name$
PrintInformation(l.LinkTo.Name$)
EndIf
Else
Information.Add w.Name$ + " is " + l.LinkTo.Name$ + ".",w.Name$,"is",l.LinkTo.Name$
If ParentCount(l.LinkTo.Name$) > 1 Then
For l2 = EachIn GetWord(l.LinkTo.Name$).LinkList
If l2.Parent Then
If l2.LinkTo.Name$ <> w.Name$ Then
Information.Add w.Name$ + " is not " + l2.LinkTo.Name$ + ".",w.Name$,"is not",l2.LinkTo.Name$
EndIf
EndIf
Next
EndIf
If NotAdded(l.LinkTo.Name$) Then
InformationWord.AddWord l.LinkTo.Name$
PrintInformation(l.LinkTo.Name$)
EndIf
EndIf
Next

End Function

Function NotAdded(Search$)
Local In:InformationWord
For In = EachIn InformationWord.InfoListWord
If In.InfoWord$ = Search$ Then Return 0
Next
Return 1
End Function

Function ParentCount(Word1$)
Local w:Word = GetWord(Word1$),FoundParents=0
For Local l:Link = EachIn w.LinkList
If l.Parent Then FoundParents=FoundParents+1
Next
Return FoundParents
End Function


'Main app
AddLink("property","color")
AddLink("property","taste")
AddLink("color","green")
AddLink("color","blue")
AddLink("color","red")



PrintInformation("color")
Information.PrintAll()


I also coded a machine to talk with using this code, check this log:
Quote
      Hello.
      :hello
      Hi.
      :red is color
      :green is color
      :blue is color
      :bob is red
      :bob is human
      :what is bob
      bob is red and human.
      :what isnt bob
      bob is not green
      bob is not blue
      :bye
      Bye.

[edit ~ Blitzversion added to topic title}

Pages: [1] 2