maybites / TextureSharing

Spout for Blender
118 stars 13 forks source link

Syntax Error when enabling addon in blender 2.79b #2

Closed l00f00 closed 5 years ago

l00f00 commented 5 years ago

Hi, i'm getting a syntax error while enabling the addon in blender 2.79b

https://pasteboard.co/IfgwlzM.png

class TEXS_PG_camera_texshare_settings(bpy.types.PropertyGroup): enable : bpy.props.BoolProperty( name = "enable", default = 0, description = "enables the texture streaming", update=texshare_main )

i also tried in 2.8, the addon looks enabled, but can't find Panel to the Camera properties called 'Streaming Texture', anywhere :/ any hint?

Thanks for the effort you are putting in this awsome addon!

maybites commented 5 years ago

This plugin only works with blender 2.8.

-> select the camera, go to properties panel, select object data tab, there it should be...

l00f00 commented 5 years ago

Thank you for the quick answer ! Now i see the Streaming Texture with a toggle to enable disable the sender in 2.8.

Testing with spout sender/receiver and Touch Designer sadly i see empty stream coming in both in touchdesigner and spout receiver,

Cattura

with demo spout sender the stream is flawlessly received

Cattura2

These are my specs from spout diagnostic tab

[Spout Receiver (Vers 2.018) DirectX 9.0c available Intel(R) HD Graphics Family (Display) Microsoft Basic Render Driver (Secondary) Current adapter : Intel NV_DX_interop extension available DirectX 11 Texture share mode]

Thank you in advance for the help!

maybites commented 5 years ago

it looks as if you are in blender image editor. that wouldn't work. you need to be in 3dviewport.

l00f00 commented 5 years ago

ah sorry that was just for reference pourpose, here is another screenshot, i really can't get what mistake i'm making, i guess maybe is because i have a self contained blender 2.8 version, i just extraced it into a folder Cattura3

newemka commented 5 years ago

Hey, you need to try lookdev, with matcap

l00f00 commented 5 years ago

Ok, sorry i'm not very good at blender, using eevee, cycles or internal? this is the rendered output straight from f12 output

Cattura4

newemka commented 5 years ago

i'm using eevee, but i got it working only in basic solid shading mode basic

maybites commented 5 years ago

ideally EEVEE, but currently it works only with solid and wireframe shading mode because of a driver bug (with nvidia cards)

l00f00 commented 5 years ago

OK! maybe it's just a problem with my gpu! i'm not on an nvidia graphic card, currently it's a pretty old intel iris HD Graphics 4400 , rendering is performed on CPU on this machine because of no CUDA available; i think we can consider the issue closed if this is the matter of why it doesn't plot any image to the receiver Cattura5 Thank you for your help and support Guys that is much appreciated! Keep up with the good job with this nice piece of software

maybites commented 5 years ago

Hard to say. Spout has nothing to do with the classical rendering, it uses render to texture functionality. try the following:

https://docs.blender.org/api/blender2.8/gpu.html#rendering-the-3d-view-into-a-texture

instructions: https://docs.blender.org/api/blender2.8/gpu.html#examples

start with the default scene and render set to eevee. it should show the rendered texture inside the 3d viewer.

l00f00 commented 5 years ago

Runned the script on the page following the instruction provided, they all have results on the 3d view except the one for render to texture, do i have to apply the texture to something like a plane? Cattura6

maybites commented 5 years ago

restart blender and just run the render to texture script. once you put your cursor into the viewport window the texture should appear.

l00f00 commented 5 years ago

with just the cursor in the viewport nothing is happening, but if i click on che cube i get image

maybites commented 5 years ago

that's strange. now I am clueless. sorry.

l00f00 commented 5 years ago

tomorrow i'll try to repeat the process in an earlier version of 2.8 maybe it helps debugging thanks man!

maybites commented 5 years ago

which version of blender do you use?

maybites commented 5 years ago

there is an issue with the latest blender. they changed the api and the render to texture example is broken, and thus my script, too.

l00f00 commented 5 years ago

image so thats the thing! mine is latest beta, wich release would work?

maybites commented 5 years ago

not sure, maybe a week old? I don't know where to download it, though.

maybites commented 5 years ago

the latest release should have fixed this issue.