Graphic Development

This is a moderated forum that collects tutorials, guides, and references for creating Transcendence extensions and scripts.
User avatar
digdug
Fleet Admiral
Fleet Admiral
Posts: 2615
Joined: Mon Oct 29, 2007 9:23 pm
Location: Decoding hieroglyphics on Tan-Ru-Dorem

Wed Feb 10, 2010 11:52 am

not Bryce 5.5c, please
THe rendering engine is too old.
If you are starting from scratch I suggest Blender.

User avatar
Wolfy
Fleet Admiral
Fleet Admiral
Posts: 5389
Joined: Tue Feb 05, 2008 1:10 am
Location: Somewhere in the Frontier on a Hycrotan station, working on new ships.

Wed Feb 10, 2010 2:57 pm

Blender 2.5+

Don't even bother trying to learn anything prior to that.
(shpOrder gPlayership 'barrelRoll)
(plySetGenome gPlayer (list 'hycrotan 'nonBinary))
Image
Homelab Servers: Xeon Silver 4110, 16GB | Via Quadcore C4650, 16GB | Athlon 200GE, 8GB | i7 7800X, 32GB | Threadripper 1950X, 32GB | Atom x5 8350, 4GB | Opteron 8174, 16GB
Workstations & Render machines: Threadripper 2990WX, 32GB, 2x 1080ti | Xeon Platinum 8173M, 48GB, 1070ti | R9 3900X, 16GB, Vega64 | 2x E5 2430L v2, 24GB, 970
Office Systems: 2x Xeon Silver 4116, 96GB, 2x 1080ti | i7 3770, 16GB, some old quadro | i5 3210m, 8GB | some i7 macbook
Misc Systems: R5 3500U, 20GB | R5 2400G, 16GB | i5 7640X, 16GB, Vega56 | E5 2620, 8GB, R5 260 | P4 1.8ghz, 0.75GB, Voodoo 5 5500 | Athlon 64 x2 4400+, 1.5GB, FX 5800 Ultra | Pentium D 3.2ghz, 4GB, 7600gt | Celeron g460, 8GB, 730gt | 2x Athlon FX 74, 8GB, 8800gts 512 | FX 9590, 16GB, R9 295x2 | E350, 8GB | Phenom X4 2.6ghz, 16GB, 8800gt | random core2 duo/atom/i5/i7 laptops

User avatar
Atarlost
Fleet Admiral
Fleet Admiral
Posts: 2391
Joined: Tue Aug 26, 2008 12:02 am

Wed Feb 10, 2010 4:46 pm

Wolfy's just a blender hater. If I could learn it from the manuals with no previous 3d experience it can't be that bad.

User avatar
Resident-Pyromaniac
Militia Lieutenant
Militia Lieutenant
Posts: 207
Joined: Sun Feb 27, 2011 5:11 pm
Location: Looting the Wreck of the CSC terra.

Mon Apr 04, 2011 9:33 pm

Personally, Modelling is easy, but the rendering and texturing always get me.
I use Rhinoceros and DOGA-L3.
If Transcendence was made in 3D, I would die of Happiness.



If you are reading this, then I have planted a deadly virus into your CPU. (not really, but you can never be too careful.)

User avatar
Atarlost
Fleet Admiral
Fleet Admiral
Posts: 2391
Joined: Tue Aug 26, 2008 12:02 am

Sat Apr 09, 2011 2:17 am

The OP's links seem to have died at last.

The rotator script for Blender is here:

Code: Select all

# rotation script

#

# first press the big render button and make

# sure it looks how the first frame should be,

# then press alt + p to run this script and

# it'll save to the 'rotated' directory.

#

# june 18 2005 s

# aug 6 2005 s & db



FILENAME = "MakayevCruiser"

OBJECTNAME ="Warship"

CAMERAANGLE = 0



dodebug = 0

dorolls = 0

doleftrolls = 1

dorightrolls = 1



import Blender

import math



from Blender import *

from Blender.Scene import Render



# code by timmeh (#blenderchat)

def save_frame(frameno):

	scn = Scene.GetCurrent()

	context = scn.getRenderingContext()



	#context.setImageType(Render.TARGA)

	context.setImageType(Render.PNG)



	# should probably set a frame and at the end of the prog render

	# the animation instead of rendering each frame one by one.

	# that would also give the advantage of being able to render to

	# a video directly (i think).

	context.setRenderPath("rotated/%s%02d-" % (FILENAME, frameno))



	context.startFrame(1)

	context.endFrame(1)



	context.renderAnim()



# code by timmeh (#blenderchat)

def save_roll_frame(frameno):

	scn = Scene.GetCurrent()

	context = scn.getRenderingContext()



	#context.setImageType(Render.TARGA)

	context.setImageType(Render.PNG)



	# should probably set a frame and at the end of the prog render

	# the animation instead of rendering each frame one by one.

	# that would also give the advantage of being able to render to

	# a video directly (i think).

	context.setRenderPath("rotated/%sroll%03d-" % (FILENAME, frameno))



	context.startFrame(1)

	context.endFrame(1)



	context.renderAnim()



def to_rad(a):

	return a * math.pi / 180



def set_angle(obj, degrees):

	if CAMERAANGLE:

		sigma = to_rad(0 - degrees)

		x = math.cos(sigma)

		y = math.sin(phi) * math.sin(sigma)

		obj.RotZ = math.atan2(y, x)

	else:

		obj.RotZ = - degrees * math.pi / 180



# main

# get object

obj = Blender.Object.Get(OBJECTNAME)



# calc phi

phi = to_rad(CAMERAANGLE)



# debug, rotates once (doesn't render, see 3d view)

if dodebug:

	set_angle(obj, 45)

	Blender.Redraw()

else:

	# 40 normal rotations

	for i in range(40):

		set_angle(obj, i * 9)

		#Blender.Redraw()

		save_frame(i)



	# 400 rolls

	if dorolls:

		if doleftrolls:

			# left rolls

			for j in range(5):

				obj.RotY = to_rad((5 - j) * 9)

				for i in range(40):

					set_angle(obj, i * 9)

					#Blender.Redraw()

					save_roll_frame(j * 40 + i)

		# right rolls

		if dorightrolls:

			for j in range(5):

				obj.RotY = - to_rad((j + 1) * 9)

				for i in range(40):

					set_angle(obj, i * 9)

					#Blender.Redraw()

					save_roll_frame(200 + j * 40 + i)



	# restore back to normal

	obj.RotZ = 0

	obj.RotY = 0

	Blender.Redraw()
as I use it. This rotates the model under the camera and lights. The tutorials for it are lost unfortunately.
Literally is the new Figuratively

User avatar
andrewpen
Commonwealth Pilot
Commonwealth Pilot
Posts: 97
Joined: Thu May 31, 2012 12:35 pm
Location: In my lab

Fri Jun 15, 2012 2:04 pm

how do you make the bmp masks
when life throws you a curve ball catch it and throw it back.

Post Reply