I recently used Joshua Davis’ fantastic hype framework for a poster design. It worked great, until I decided to export to a pdf as a vector. All I get is an empty pdf with no graphics. Pls help me if there any one out there who also uses this great framework and can get pdf with vectors.
@buraquex it sounds like I am having the same problem you were, only I can’t get proper vector output by following Joshua’s process, it renders but only as a pixel based image. I would be super grateful if for any insight as to what I am missing: Export to PDF will not render vectors
Hi. I can’t print 3D in PDF HBox. I suggest I can print 3D projection in Hype.
It prints 2D as expected with HRect and H.stage().paintAll(g, false, 1);
Second param in paintAll is boolean usesZ.
Here is simplified not working example with HBox and H.stage().paintAll(g, true, 1);
import hype.*;
import processing.pdf.*;
boolean record = false;
void setup() {
size(600, 600, P3D);
H.init(this).background(#ff00ff).autoClear(true);
HBox d = new HBox();
d
// .depth(20)
.loc( width/2, height/2, 10 )
.width(20)
.height(20)
;
H.add(d);
}
void draw() {
PGraphics tmp = null;
if (record) {
tmp = beginRecord(PDF, "render-HBox.pdf");
}
if (tmp == null) {
H.drawStage();
} else {
PGraphics g = tmp;
H.stage().paintAll(g, true, 1);
}
if (record) {
endRecord();
record = false;
}
}
void keyPressed() {
if (key == 's') {
record = true;
// draw();
}
}