03.18.08

Disegnare una superficie parametrica con Scilab / Draw a parametric surface with Scilab

Pubblicato su Applicazioni e Progetti, English, Problemi Risolti, Scuola, Tips&Tricks tagged , , , , , , , , a 15:54 di mastro

Questo articolo sarà sia in Italiano che in Inglese: scusate per gli strani colori ma aiuta a distinguere tra le due lingue.

Mi serviva per la tesi produrre delle superfici parametriche utilizzando Scilab, tutti gli esempi trovati nel manuale e su web non funzionavano e davano strani errori!!!! Così mi sono stufato e ho studiato un metodo alternativo per disegnarle…

Per disegnare una sfera parametrica (di prova) ho seguito il metodo suggerito dalle guide ricevendo l’errore che vedete:

This article will be either in Italian and in English: sorry for the weird colors but help to differentiate them.

I was in trying to plot a 3d parametric surface with Scilab, all the example I’ve found in the manual and on the web doesn’t worked for me giving some weird errors!!!! So i pissed off and worked around it finding my own way to draw a parametric surface…

To draw a parametric sphere (to test) I tried the way suggested by manuals getting the error you see:

u=linspace(0,%pi); // primo vettore dei parametri / first parameter vector

v=linspace(0,2*%pi); // secondo vettore dei parametri / second parameter vector

deff('[x,y,z]=fun(u,v)’,['x=sin(u).*cos(v)','y=sin(u).*cos(v)','z=cos(u)']); // definizione dell’equazione parametrica / define the parametric equation

mesh(u,v,fun);

Z must not be a scalar or vector, not rendering surface.
!–error 999
set: color_mode property does not exist for this handle
at line 4 of function generic_i_h called by :
line 2 of function %s_i_h called by :
line 22 of function mesh called by :
mesh(u,v,fun);

Ho ricontrollato parecchie volte ma non ho fatto nulla di diverso da quello consigliato in numerose guide! Eppure non funziona così… Quindi ecco come ho risolto:

I checked a lot of times but exactly made what many guides advice to do! Nevertheless it doesn’t work this way… So here how i solved this issue:

Leggi il seguito di questo post »

09.24.07

Gimp UI Brainstorming: la mia proposta

Pubblicato su Attivismo, Discussioni, English, Gimp, Segnalazioni a 17:09 di mastro

Questo articolo è scritto sia in italiano che in inglese / this article has been written either in italian and in english: english reader will find it down under the italian article

my proposal

La mia proposta / My proposal (click sull’immagine per vederla a dimensioni naturali / click on the image to see it at original size)

Vorrei sapere da voi cosa ne pensate / I would like to know what do you think about it
Leggi il seguito di questo post »

09.01.07

Asus A4K: Get working 3D with Linux

Pubblicato su Aggiornamenti, English, Linux, Problemi Risolti a 3:19 di mastro

I’ve translated the part that explain how to solve the problem with the Ati Mobility Radeon 9700 on my Asus A4K Notebook.

This laptop have a bug in the Bios that make busy all the MTRR registers…

here are the errors i got before fixing

$ dmesg

[fglrx] Maximum main memory to use for locked dma buffers: 1899 MBytes.
[fglrx] module loaded - fglrx 8.27.10 [Jul 27 2006] on minor 0
ACPI: PCI Interrupt Link [LNKE] enabled at IRQ 11
ACPI: PCI Interrupt 0000:01:00.0[A] -> Link [LNKE] -> GSI 11 (level, low) -> IRQ 11
mtrr: no more MTRRs available
[fglrx:firegl_addmap] *ERROR* mtrr allocation failed (-2 8)
[fglrx] Internal AGP support requested, but kernel AGP support active.
[fglrx] Have to use kernel AGP support to avoid conflicts.
[fglrx] AGP detected, AgpState = 0×1f00421b (hardware caps of chipset)
mtrr: no more MTRRs available
[fglrx:firegl_unlock] *ERROR* Process 4540 using kernel context 0

and

(II) fglrx(0): [drm] register handle = 0×00004000
(EE) fglrx(0): [agp] unable to acquire AGP, error “xf86_ENOSPC”
(EE) fglrx(0): cannot init AGP
(II) fglrx(0): [drm] removed 1 reserved context for kernel
(II) fglrx(0): [drm] unmapping 8192 bytes of SAREA 0×2000 at 0xb71af000
(WW) fglrx(0): ***********************************************
(WW) fglrx(0): * DRI initialization failed! *
(WW) fglrx(0): * (maybe driver kernel module missing or bad) *
(WW) fglrx(0): * 2D acceleraton available (MMIO) *
(WW) fglrx(0): * no 3D acceleration available *
(WW) fglrx(0): ********************************************* *

Here i explain how to fix this problem, it’s a translation of my italian article on my laptop.