Perl 6 - the future is here, just unevenly distributed

IRC log for #openframeworks, 2014-04-11

| Channels | #openframeworks index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:27 admsyn joined #openframeworks
01:38 admsyn joined #openframeworks
01:54 kdh-1334_ joined #openframeworks
01:58 bakercp joined #openframeworks
02:08 OliverUv Hm, when I use ofTrueTypeFont::drawString, it draws a block per character, where I guess each block has a texture that shows the character.
02:08 OliverUv right now my frag shader is just painting every pixel black, which lets me see which pixels are being written to
02:09 OliverUv how can I access the textures for the character? is it just one texture, or several?
02:09 bakercp ofTrueTypeFont creates a single large texture atlas.
02:10 bakercp When you draw strings, it addes charachters to a mesh and attaches texture coordinates (from the atlas) to the mesh.
02:11 bakercp the primary texture is inside of ofTrueTypeFont and is bound just before the internal ofMesh is rendered.
02:11 OliverUv Oh! by the way, I tried to use ofxUnicode (to use ofxFontStash), but it wouldn't compile. I guess you're not actively developing it now though?
02:11 bakercp if you shader.begin() … render text … shader.end() it should work.
02:11 bakercp ofxUnicode is currently being merged into ofxFont … I’m getting very very close ...
02:12 OliverUv ah, this is line 1120 texAtlas.bind(); in ofTTF.cpp I assume
02:12 bakercp a much more flexible international unicode supported thing … hopefully in the next few weeks …
02:12 OliverUv so this should be bound as tex0 ?
02:12 bakercp yeah i think so.
02:12 OliverUv hm! iirc i had a shader error telling me I couldn't use unbound tex0
02:13 bakercp ofTexture & getFontTexture();
02:13 bakercp ttf.getFontTexture()
02:13 OliverUv anyway, this problem I'm having now can be solved by a hack, so I don't need a correct solution right now
02:13 bakercp will give you a reference to the texture so you can bind to it, etc.
02:13 OliverUv nice
02:13 OliverUv that is exactly what I would need to solve this correctly :)
02:14 bakercp it’s a big ugly thing — you should draw the whole thing to the screen just for fun.
02:14 bakercp anyway, ofxFont currently allows you to add new unicode characters to the texture atlas on the fly.
02:14 OliverUv and yeah, I've seen (unresolved) git issues from like 2 years back about font rendering. Seems like it is one of the pain points of oF at the moment?
02:14 bakercp yeah …
02:15 bakercp I started working on all of this about 2 years ago :)
02:15 bakercp and finally figure out the right way forward I think.
02:15 bakercp it’s complex to do it right … really complex.
02:15 OliverUv yeah, font rendering is surprisingly and frighteningly complex now that I've gotten into graphics
02:16 OliverUv Hm, so ofxFont is about 1 year since last commit. But you have worked actively on it?
02:16 OliverUv I admire your patience, anyway :)
02:17 bakercp Yeah, I have been working actively on it … just haven’t pushed it so as to not get anyone’s hopes up :)
02:17 OliverUv heh
02:17 bakercp Here’s what we’re going for …
02:17 bakercp https://docs.google.com/document/d/1GjgjQZCHTcOD3cT9OFSl0AZ1nhfYwwvxTl5L4OJE6qA/edit
02:17 bakercp Down under typography
02:18 bakercp I’d like to have it in the core by 0.9 so it’s ready for prime time by 1.0.
02:18 OliverUv so are y'all paid by your respective employers to do work on oF?
02:18 OliverUv or is there some foundation?
02:18 bakercp No money.
02:19 bakercp Which is why it takes so long :)
02:19 bakercp I’m a professor at an art school.
02:19 OliverUv hella good framework though
02:19 OliverUv ah, cool
02:19 bakercp So, I mostly work on openFrameworks on the train to and from work :)
02:19 OliverUv i am employed at my uni, using oF now for my bachelor's thesis work
02:19 bakercp and … evenings.  and weekends … and whenever.
02:19 OliverUv :)
02:19 bakercp where are you studying?  I’m @ saic in Chicago.
02:20 OliverUv now that I have a really fun project to work on, I am getting increasingly addicted to programming
02:20 bakercp that’s great!
02:20 OliverUv Linköping University, Sweden
02:20 bakercp Come to our grad program :)
02:20 OliverUv hehe
02:20 bakercp I’m headed to Norway with a stopover in Sweden next week.  Probably won’t be near you though.
02:20 bakercp It’s a big world up there.
02:20 OliverUv It'd be fun to get seriously into comp/gen-art
02:21 pizthewiz Yay ofFont 🎉
02:21 OliverUv I'm hoping to make a company out of the stuff I'm doing now
02:21 pizthewiz Having used ofTrueTypeFont for the first time last week, I'm ready for ofFont :0)
02:21 OliverUv but it'd be my first attempt at a company, so it will probably fail gloriously :)
02:21 bakercp @pizthewiz yeah :)
02:21 OliverUv after that I will be happy to join your grad program
02:21 bakercp I’m sure you’ll do great :) — are you in art / design or CS or something?
02:22 OliverUv CS
02:22 bakercp Very cool.  Be sure to post your project / thesis on the forum or something.
02:22 bakercp Makes us all proud.
02:22 OliverUv i will open source it when the api:s are stable
02:22 bakercp even better :)
02:23 OliverUv hopefully get people involved in making stuff for it
02:23 bakercp hey pizthewiz — were you the one working on udoo?
02:23 bakercp jvcleave and I just got some the other day and we’re researching the current state of graphics acceleration ...
02:25 pizthewiz ofTrueTypeFont essentially creates a texture / sprite at a fixed size yeah?
02:25 bakercp it’s essentially a sprite sheet
02:26 pizthewiz Yup, I was messing around with UDOO before just going the Raspberry Pi + Arduino route :0)
02:26 bakercp and an ofMesh makes reference to it.
02:26 pizthewiz I caught your conversation over in #udoo earlier, sounds like it might come together with a fixed dependencies script?
02:28 OliverUv Thanks for the help re fonts, bakercp! I've been messing with this stuff for two days soon
02:28 pizthewiz The texture backing explains why changing text size is so sluggish on the Raspberry Pi, I originally had it tied to a rotary encoder but that wasn't a great idea…
02:29 bakercp :)  Good luck!
02:30 OliverUv oh right sorry, I gotta ask this too
02:30 OliverUv before calling drawStringAsShapes, I do ofSetColor(255,255,255, alpha_val);
02:30 OliverUv but the alpha value seems to be totally disregarded
02:31 pizthewiz And your alpha_val is an 8-bit int right?
02:31 OliverUv is this because of efforts to do anti-aliasing and such?
02:31 pizthewiz 0-255 not 0.0f-1.0f
02:31 bakercp (and make sure you enabled alpha blending)
02:31 OliverUv pizthewiz: I do (int)alpha_val, since alpha_val is a float being manipulated by ofxPlaylist
02:31 OliverUv but yeah it ranges between 1 and 255
02:31 pizthewiz as long as it is big enough
02:32 bakercp ofEnableAlphaBlending()?
02:32 OliverUv I explicitly disable alpha blending, because I want the alpha bits to be set to this value, and the color bits to be set to the color values I want
02:32 OliverUv the problem is that the alpha bits seem to be set to 1.0 in the shader no matter what
02:34 OliverUv wait hold on, this is a problem on my side
02:35 OliverUv Well, I had these problems previously too, but _right now_ the behaviour I'm seeing is due to my faulty code
02:38 OliverUv Hm, when using drawStringAsShapes, I see each character is drawn individually, and characters are just typedef'd ofPaths
02:40 OliverUv That are drawn with some ofSetColor. How can I access this color in my frag shader? I know there's the globalColor uniform. But is there some way to get this information per-pixel? (I assume some pixels will have different alphas depending on the antialiasing and such)
02:45 OliverUv Actually, I'm guessing the way to access the color of anything drawn with ofGraphics is to use the globalColor uniform?
02:51 booltox joined #openframeworks
04:30 ludkiller joined #openframeworks
05:10 lukaszw joined #openframeworks
05:19 Joel_re joined #openframeworks
05:38 pizthewiz joined #openframeworks
06:24 pizthewiz joined #openframeworks
07:17 ncls joined #openframeworks
09:06 ncls joined #openframeworks
09:29 neue joined #openframeworks
10:39 yeahyeahyeah joined #openframeworks
11:06 vade joined #openframeworks
12:42 stephanschulz joined #openframeworks
13:12 kikko_fr joined #openframeworks
13:40 kikko_fr joined #openframeworks
13:46 kikko_fr joined #openframeworks
13:50 laserpilot joined #openframeworks
14:03 nylki joined #openframeworks
14:42 ncls joined #openframeworks
15:05 nylki joined #openframeworks
15:09 ludkiller joined #openframeworks
15:34 AceSlowman joined #openframeworks
15:55 uberdan joined #openframeworks
16:00 vade joined #openframeworks
16:05 admsyn joined #openframeworks
16:23 pizthewiz joined #openframeworks
16:34 vade joined #openframeworks
16:54 AceSlowman admsyn! Just wanted to say thanks for the help a few weeks ago. Finished my first CV experiment, starting work on my second.
16:55 admsyn AceSlowman: awesome! great to hear :)
17:10 Joel_re joined #openframeworks
17:12 kdh-1334_ joined #openframeworks
17:16 vade joined #openframeworks
17:27 uberdan joined #openframeworks
17:29 decultured joined #openframeworks
18:14 kdh-1334_ joined #openframeworks
18:16 kikko_fr joined #openframeworks
18:18 dubbed joined #openframeworks
18:30 vade joined #openframeworks
18:58 kdh-1334_ joined #openframeworks
19:06 kdh-1334_ joined #openframeworks
19:40 kdh-1334_ joined #openframeworks
20:15 Pando_ Is ofDisableArbTex() mandatory when using shaders ?
20:15 Pando_ I just wtf'd for 10 minutes, trying to port an example from a project to another and when using shaders my 3d primitives didn't show up
20:16 Pando_ had to go through commenting each line to see what "disabled" the shader. turns out it was in the destination project ofDisableArbTex() wasn't used
20:32 bbogart joined #openframeworks
20:32 bbogart Hey all, anyone else having trouble with the ofx forum? It says it will send me an email, but no emails ever arrive, so I can't reset my password, or even create a new account.
20:38 admsyn hey bbogart
20:38 admsyn I think I had an issue like that when the forum switched over
20:39 admsyn jvcleave: is that in your domain?
20:40 jvcleave i might be able to check it
20:43 jvcleave bbgoart -PMing now
20:51 kdh-1334_ joined #openframeworks
21:01 GuidovanPossum joined #openframeworks
21:08 pizthewiz joined #openframeworks
21:10 LCID_Fire joined #openframeworks
21:40 stephanschulz joined #openframeworks
22:00 stephanschulz joined #openframeworks
22:07 stephanschulz left #openframeworks
22:30 ofarturo joined #openframeworks
22:51 decultur_ joined #openframeworks
23:21 ofarturo joined #openframeworks

| Channels | #openframeworks index | Today | | Search | Google Search | Plain-Text | summary