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: 2620
Joined: Mon Oct 29, 2007 9:23 pm
Location: Decoding hieroglyphics on Tan-Ru-Dorem

not Bryce 5.5c, please
THe rendering engine is too old.
If you are starting from scratch I suggest Blender.
User avatar
Aury
Fleet Admiral
Fleet Admiral
Posts: 5421
Joined: Tue Feb 05, 2008 1:10 am
Location: Somewhere in the Frontier on a Hycrotan station, working on new ships.

Blender 2.5+

Don't even bother trying to learn anything prior to that.
(shpOrder gPlayership 'barrelRoll)
(plySetGenome gPlayer (list 'Varalyn 'nonBinary))
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 | Xeon E5 2620 v3, 8GB | 2x Xeon Silver 4116, 96GB, 2x 1080ti | i7 8700, 32GB, 6500XT
Workstations & Render machines: Threadripper 3990X, 128GB, 6900XT | Threadripper 2990WX, 32GB, 1080ti | Xeon Platinum 8173M, 48GB, 1070ti | R9 3900X, 16GB, Vega64 | 2x E5 2430L v2, 24GB, 970 | R7 3700X, 32GB, A6000
Gaming Systems: R9 5950X, 32GB, 6700XT
Office Systems: Xeon 5318Y, 256GB, A4000
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

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.

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

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
andrewpen
Commonwealth Pilot
Commonwealth Pilot
Posts: 97
Joined: Thu May 31, 2012 12:35 pm
Location: In my lab

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