Sverchok / SverchokRedux

A reimplementation of Sverchok
GNU General Public License v3.0
4 stars 2 forks source link

Roadmap (or todo) #14

Open ly29 opened 9 years ago

ly29 commented 9 years ago

The system is basically working now. As #7 is closed it is time to look forward a bit. All of these deserves their own issues.

ly29 commented 9 years ago

To test. Testing, easiest is to use git and then create a symlink in the addons folder pointing to the SverchokRedux folder. There isn't much to do yet with the system.

nortikin commented 9 years ago

but it not installing error in importing core/execute and compiler items from the same folder

PS

same problem was in initial Sverchok with dot import. dont remember how we solved

nortikin commented 9 years ago
  File "/home/ololo/.config/blender/2.76/scripts/addons/SverchokRedux/core/compiler.py", line 1, in <module>
    from SverchokRedux.core.execute import GraphNode
  File "/home/ololo/.config/blender/2.76/scripts/addons/SverchokRedux/core/execute.py", line 3, in <module>
    from SverchokRedux.core.compiler import create_graph
ImportError: cannot import name 'create_graph'
nortikin commented 9 years ago

maybe

sys.modules["SverchokRedux"] = sys.modules[__name__]

please register in paths

ly29 commented 9 years ago

Ahh, will take of that, it seems does errors don't appear on reloading after doing the changes.

ly29 commented 9 years ago

Should work now

ly29 commented 9 years ago

I won't mess with the sys.modules again, I think a better distribution system is in order

ly29 commented 9 years ago

Tried to play a bit with opengl, but all the new functions where ´´´None´´´ in the bgl module. Didn't have time to look into that... @zeffii Any idea?

zeffii commented 9 years ago

I'll make time to check the bgl stuff :) haven' looked at new functions yet

ly29 commented 9 years ago

It is nifty, you give open gl vertices either as ordered triangles or as verts and topology. From a silly amount of function calls it becomes just a few. And then a shader programs paints it. We will need a good way to triangulate though.

ly29 commented 9 years ago

And giving means passing a memory buffer in one call.

ly29 commented 9 years ago

Oh, I just did something stupid, now the functions show up.

zeffii commented 9 years ago

got any code to experiment with?

zeffii commented 9 years ago

@ly29 i know it's probably only cosmetic.. and your code isn't in a final state but I do read the code. And am wondering: https://gist.github.com/zeffii/7979b80c1dd61d3028c3 if that might have any effect on speed

ly29 commented 9 years ago

@zeffii Working on OpenGL code.

Yeah, thumbs from me about that change. Even thinking about turning it into a named tuple/class for easer use, for the links and the node. all the lookups are getting my nerves.

Link = namedtuple("Link", ["from_node", "from_socket", "to_node","to_socket"])
ly29 commented 9 years ago

or even the shorter forms.

zeffii commented 9 years ago

ideasman42 expressed an unfavourable opinion about the speed and implementation of namedtuple, quite some time ago -- i'm not sure if it is relevant here: http://blenderscripting.blogspot.nl/search/label/namedtuple

ly29 commented 9 years ago

well if turns out to be a problem we can shift it along those lines. easy enough to do, the main thing I want is the interface of not having to look up things.

node=nodes[name]
node["bl_idname"]
# vs
node.bl_idname
# etc
zeffii commented 9 years ago

yeah, massive headache those " " all the time. I agree.

ly29 commented 9 years ago

I tried to, but I think I get the theory of the more modern open gl but the specifics are bit new. A working piece of code would nice. Will hold of a bit with it.

ly29 commented 9 years ago

Red book

ly29 commented 9 years ago

@zeffii

import bgl
bgl.glGenVertexArrays is None

is also true for you?

zeffii commented 9 years ago
>>> bgl.glGenVertexArrays()
Traceback (most recent call last):
  File "<blender_console>", line 1, in <module>
TypeError: function takes exactly 2 arguments (0 given)
zeffii commented 9 years ago

I don't think it's supposed to have any explicit return value, except None

zeffii commented 9 years ago

I am interested to see what the bgl equivalent of https://gist.github.com/zeffii/131fb3a0f6fc3ca117fb is

zeffii commented 9 years ago

see https://github.com/Sverchok/SverchokRedux/issues/16 for bgl talk

ly29 commented 9 years ago

A bit of a break, will be quite busy the next couple of days. Will try to advance a bit here and there anyway.

ly29 commented 8 years ago

Update

So right now everything is kind broken, will focus on getting it to run again with consequences of the new type system. But will be day or two before I can do that.