3d Elite style radar

Blitz3D Forums/Blitz3D Programming/3d Elite style radar

Jon_E_5(Posted 2006) [#1]
Hi, I'm not a mega experienced coder. But I seem to remember in the code archives someone doing an Elite style 3D radar. I can't seem to find it anymore. Would really help me out if I could look at this code. Anyone know where it is? or could post a similar example on here. many thanks in advance.


Boiled Sweets(Posted 2006) [#2]
I've been told by many people that the current owner of the Elite trademark is VERY aggresive in ensuring that the Elite name, ships etc are not used. I would be very careful with your Elite remake. Or get yourself a serious tasty lawyer.


Function Scanner(scanx,scany)

	; Scanner by Timo Souranta
	;
	;Stations And planets are white because they are greater than 500t
	;Scanner size is: Scanx X -115 to Scanx +115 (with a scale of .7)
	;Scany Y -37 to Scany +37   

	Color 255,0,0
	Oval scanx-115,scany-37 , 230,74,0
	scale# = 0.7
	Plot scanx, scany
	
	TFormPoint 0,0,0, Station, Cobra
	x# = TFormedX() *  scale
	y# = TFormedY() * -scale
	z# = TFormedZ() *  scale
	x1# = x
	y1# = - z/4 + y/2
	y2# = - z/4
	If x1 > -200 And x1 < 200 And y1 > -200 And y1 < 200 Then
		Color      255, 255, 255
		If scanx+x1>scanx-115 And scanx+x1<scanx+115 And scany+y1>scany-37 And scany+y1<scany+37
		 	scn=(scany+y1)-(scany+y2)
		 	If scn>-30 And scn<30
  		  		WritePixel scanx+x1+1, scany+y1, 256*256*255 + 256*255
  		 		Line scanx+x1, scany+y1, scanx+x1,scany+y2
			EndIf
		EndIf
	EndIf
	
End Function



Jon_E_5(Posted 2006) [#3]
He can't be that bothered as the Elite source code was released by the author Ian Bell some time ago for anyone to play around with. I could be wrong. Currently David Braben's company is supposedly doing another Elite game although I don't think he can use the 'Elite' name or at least he says it won't be called Elite IV directly by all accounts. I've not had any complaints and there's been loads of remakes/re-imagings etc over the years and they haven't been shut down. Admittedly if I was attempting a commercial game that would be different, but this would purely be a freeware title and a homage to the original ;-)


Jon_E_5(Posted 2006) [#4]
Oh and many thanks for the code too nice one. :-)