Alright, I know this is whack, but can you...

Scripting in Blender with Python, and working on the API

Moderators: jesterKing, stiv

Post Reply
scooterl
Posts: 0
Joined: Wed Jul 07, 2004 6:11 am

Alright, I know this is whack, but can you...

Post by scooterl »

Is it possible to render a single pixel at a certain x,y,z coordinate?

Not a mesh object, but a purely added pixel, at a certain depth, that can be situated in front of/behind mesh objects depending on camera location.

I wonder this because I'm planning out a script to generate a variable-depth mist (instead of the current "Wall O' Dust" mist, which is easily ten years behind the times).

I need to be able to write depth-conditional RGBA values directly to the rendered image.

Is there a way to render a single pixel at a certain x,y,z coordinate?

matt_e
Posts: 410
Joined: Mon Oct 14, 2002 4:32 am
Location: Sydney, Australia
Contact:

Post by matt_e »

I think you should be able to do this with a video sequence plugin? (has access to RGB pixels and Z-buffer).

Here's a tutorial on writing one:
http://www.blender.org/modules/document ... 11071.html

ideasman
Posts: 0
Joined: Tue Feb 25, 2003 2:37 pm

Post by ideasman »

you can set the render boarder to a floating pt value- but this isnt 1 px.

scooterl
Posts: 0
Joined: Wed Jul 07, 2004 6:11 am

Post by scooterl »

Thanks to both of you.

I was hoping to do it as a script in Python, but the plugin approach may be the way to go. Sadly, my skills in writing .c are pretty poor :(

I only used the 'pixel' idea as a metaphor, and perhaps an inaccurate one at that. The problem I'm having is trying to figure out how to write an RGBA value to a particular (x,y,z) coord...

I'll just keep playing at it a bit.

Thanks again.

ideasman
Posts: 0
Joined: Tue Feb 25, 2003 2:37 pm

Post by ideasman »

your probably better to render the image and then use a python image processing lib SDL/Pygame are good.

Post Reply