View Issue Details

IDProjectCategoryView StatusLast Update
0002090FSSCPscriptingpublic2010-02-20 22:20
ReporterSparK Assigned ToWanderer  
PrioritynormalSeverityfeatureReproducibilityalways
Status closedResolutionwon't fix 
Product Version3.6.10 
Summary0002090: Feature Request camera.render()
Descriptionthe Camera class only works if you use mn.startMission
otherwise, with mn.simulateFrame() and mn.renderFrame() cameras are ignored
I would really like to be able to render the view of a certain camera to a texture or the screen.
TagsNo tags attached.

Activities

The_E

2010-01-14 21:58

administrator   ~0011521

mn.simulateframe() has no direct bearing on cameras, it's responsible to run all the AI, physics and sexp logic in the current context,

SparK

2010-01-28 20:52

reporter   ~0011597

i know, i just put it there cause i use it a lot with mn.renderFrame()
that renders all cameras

so i think instead of setting a camera and then rendering with mn.renderFrame(), we should be able to render a camera directly by calling camera.renderFrame()

Wanderer

2010-02-12 11:27

developer   ~0011655

Whole lot of data needs to be initialized and verified, models need to be loaded, textures need to be loaded etc. That is to say making a renderframe independent of the missions is something that could be done but given the amount of work related it is fairly unlikely that it would be accomplished any time soon.

Rendering stuff onto a texture is whole another thing. Which should already be possible (Render to texture - RTT). You just need to set the rendertargets properly and make sure the textures are updated (not 100% if engine does this on its own).

At least judging by these it is possible
http://www.youtube.com/watch?v=rlo2hHlNIZk
http://www.youtube.com/watch?v=6uFrJlSyXO4&feature=related
http://www.youtube.com/watch?v=yvqOrDJUyCU

You could ask if nuke still has the scripts and if he is willing to post then into the open (or even commit to wiki).

Issue History

Date Modified Username Field Change
2010-01-13 10:18 SparK New Issue
2010-01-13 10:18 SparK Status new => assigned
2010-01-13 10:18 SparK Assigned To => WMCoolmon
2010-01-14 21:58 The_E Note Added: 0011521
2010-01-28 20:52 SparK Note Added: 0011597
2010-02-12 11:27 Wanderer Note Added: 0011655
2010-02-12 11:27 Wanderer Assigned To WMCoolmon => Wanderer
2010-02-20 22:20 Wanderer Status assigned => closed
2010-02-20 22:20 Wanderer Resolution open => won't fix